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