コード例 #1
0
 @Override
 protected void onDialogClosed(boolean result) {
   super.onDialogClosed(result);
   if (result) {
     final String value = getValue();
     myBook.setLanguage(value.length() > 0 ? value : null);
   }
 }
コード例 #2
0
 @Override
 protected void onDialogClosed(boolean result) {
   super.onDialogClosed(result);
   if (result) {
     final String value = getValue();
     if (!value.equalsIgnoreCase(myBook.getEncoding())) {
       myBook.setEncoding(value);
       ((EditBookInfoActivity) getContext()).setResult(FBReader.RESULT_RELOAD_BOOK);
     }
   }
 }