@Override public void onRestart() { super.onRestart(); fontPath = BibleUtils.getFontPath(this); if (!ObjectUtils.isIdentical( fontPath, mAdapter.getData(getCurrentPosition()).getString(FONT_PATH))) { refresh(); } }
@Override protected void onCreate(Bundle savedInstanceState) { setTheme(); resolveColors(); super.onCreate(savedInstanceState); setContentView(getContentLayout()); mHeader = findHeader(); mPager = (ViewPager) findViewById(R.id.pager); bible = Bible.getInstance(this); fontPath = BibleUtils.getFontPath(this); mAdapter = new ReadingAdapter(getSupportFragmentManager(), retrieveOsisCount()); initialize(); }