private void updateSlokaVisibility() { int visibility = PreferenceUtils.getShowSloka(getActivity()) && (quote.getChapterNo() > 0) ? View.VISIBLE : View.GONE; slokaTitleTV.setVisibility(visibility); translationTitleTV.setVisibility(visibility); slokaTV.setVisibility(visibility); }
@Override public void onResume() { super.onResume(); registerReceiver(); if (PreferenceUtils.enableTalk(getActivity())) { settingsChangeListener.onSettingsChanged(SettingsItem.PLAY); } // processAutoTalk(false); // settingsChangeListener.onSettingsChanged(SettingsItem.PLAY); }
private void updateFontSize() { int fontSize = PreferenceUtils.getFontSize(getActivity()); if (tv_body != null) { tv_body.setTextSize(TypedValue.COMPLEX_UNIT_SP, fontSize); } if (slokaTV != null) { slokaTV.setTextSize(TypedValue.COMPLEX_UNIT_SP, fontSize); } if (slokaTitleTV != null) { slokaTitleTV.setTextSize(TypedValue.COMPLEX_UNIT_SP, fontSize); } if (translationTitleTV != null) { translationTitleTV.setTextSize(TypedValue.COMPLEX_UNIT_SP, fontSize); } }