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