public void goBack() { if (chapter.getVisibility() == View.INVISIBLE) { chapter.setVisibility(View.VISIBLE); savehistory(); } else { ((main) mContext).exitApp(); } }
/** * Show chapter view * * @param scrollto if scroll in */ public void showChapters(boolean scrollto) { savehistory(); chapter.setVisibility(View.VISIBLE); // content.setVisibility(View.); if (scrollto) { showChapterAnimation(); } else { } }