@Override
 protected void onDialogClosed(boolean result) {
   super.onDialogClosed(result);
   if (result) {
     final String value = getValue();
     myBook.setLanguage(value.length() > 0 ? value : null);
   }
 }
 @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);
     }
   }
 }