示例#1
0
 protected ApplicationMode readApplicationMode() {
   String s =
       globalPreferences.getString(APPLICATION_MODE.getId(), ApplicationMode.DEFAULT.name());
   try {
     return ApplicationMode.valueOf(s);
   } catch (IllegalArgumentException e) {
     return ApplicationMode.DEFAULT;
   }
 }
示例#2
0
 public boolean usingEnglishNames() {
   return USE_ENGLISH_NAMES.get();
 }
示例#3
0
 public ApplicationMode getApplicationMode() {
   return APPLICATION_MODE.get();
 }