Example #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();
   }
 }
Example #2
0
 public void onCancel(DialogInterface dialog) {
   if (mChangeSettingsEnabled) {
     GlobalSettings.setCountryIconsEnabled(getContext(), false);
   }
 }