コード例 #1
0
 /**
  * The description is the opposite of the current state because the button text describes what
  * will happen if you press it.
  */
 public String getBibleBookSortOrderButtonDescription() {
   if (BibleBookSortOrder.BIBLE_BOOK.equals(getBibleBookSortOrder())) {
     return CommonUtils.getResourceString(R.string.sort_by_alphabetical);
   } else {
     return CommonUtils.getResourceString(R.string.sort_by_bible_book);
   }
 }
コード例 #2
0
 @Override
 protected String getTitle() {
   if (isOn()) {
     return CommonUtils.getResourceString(R.string.deuterocanonical);
   } else {
     return CommonUtils.getResourceString(R.string.bible);
   }
 }