예제 #1
0
 private void updateSlokaVisibility() {
   int visibility =
       PreferenceUtils.getShowSloka(getActivity()) && (quote.getChapterNo() > 0)
           ? View.VISIBLE
           : View.GONE;
   slokaTitleTV.setVisibility(visibility);
   translationTitleTV.setVisibility(visibility);
   slokaTV.setVisibility(visibility);
 }
예제 #2
0
 @Override
 public void onResume() {
   super.onResume();
   registerReceiver();
   if (PreferenceUtils.enableTalk(getActivity())) {
     settingsChangeListener.onSettingsChanged(SettingsItem.PLAY);
   }
   //        processAutoTalk(false);
   //        settingsChangeListener.onSettingsChanged(SettingsItem.PLAY);
 }
예제 #3
0
  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);
    }
  }