コード例 #1
0
 @Override
 public void onRestart() {
   super.onRestart();
   fontPath = BibleUtils.getFontPath(this);
   if (!ObjectUtils.isIdentical(
       fontPath, mAdapter.getData(getCurrentPosition()).getString(FONT_PATH))) {
     refresh();
   }
 }
コード例 #2
0
  @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();
  }