コード例 #1
0
 public void onClick(DialogInterface dialog, int which) {
   if (which == AlertDialog.BUTTON_POSITIVE) {
     ((ApplicationEx) getContext().getApplicationContext())
         .getCatalogStorage()
         .requestTask(DownloadIconsTask.getInstance());
   }
   if (which == AlertDialog.BUTTON_NEGATIVE) {
     if (mChangeSettingsEnabled) {
       GlobalSettings.setCountryIconsEnabled(getContext(), false);
     }
     dialog.dismiss();
   }
 }
コード例 #2
0
 public void onCancel(DialogInterface dialog) {
   if (mChangeSettingsEnabled) {
     GlobalSettings.setCountryIconsEnabled(getContext(), false);
   }
 }