Exemplo n.º 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();
 }
Exemplo n.º 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();
  }
Exemplo n.º 3
0
 public static void fecthPersonalization() {
   HashMap payload = ReaderController.getInstance().createPersonalizationRequest();
   ReaderController.getInstance().requestPersonalization(payload);
 }