Ejemplo n.º 1
0
 @Override
 protected void onPause() {
   super.onPause();
   if (mI13n != null) {
     I13N.get().log(new Event(mEvt.setAction("onPause")));
     I13N.get().flushDelayed();
   }
 }
Ejemplo n.º 2
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();
 }
Ejemplo n.º 3
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();
  }