示例#1
0
 @Override
 protected void onDestroy() {
   if (bI13nOriginallyEnabled != ReaderController.getInstance().getSettings().getI13NEnabled()) {
     if (ReaderController.getInstance().getSettings().getI13NEnabled()) {
       I13N.get().log(mEvt.setAction("I13N enabled"));
     } else {
       ReaderController.getInstance().getSettings().setI13NEnabled(true);
       I13N.get().logImmediately(mEvt.setAction("I13N disabled"));
       ReaderController.getInstance().getSettings().setI13NEnabled(false);
     }
   }
   super.onDestroy();
 }
示例#2
0
  @Override
  protected void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mI13n = I13N.get();
    instrument();

    getFragmentManager()
        .beginTransaction()
        .replace(android.R.id.content, new ReaderPreferenceFragment())
        .commit();
    ActionBar actionBar = getSupportActionBar();
    actionBar.setDisplayHomeAsUpEnabled(true);
    bI13nOriginallyEnabled = ReaderController.getInstance().getSettings().getI13NEnabled();
  }
示例#3
0
文件: JsonUtil.java 项目: tyhu/Git
 public static void fecthPersonalization() {
   HashMap payload = ReaderController.getInstance().createPersonalizationRequest();
   ReaderController.getInstance().requestPersonalization(payload);
 }