super.onDialogClosed(positiveResult);
if (positiveResult) {
setEnabled(false);
Context context = getContext();
if (BrowserSettings.PREF_CLEAR_CACHE.equals(getKey())) {
BrowserSettings.getInstance().clearCache(context);
} else if (BrowserSettings.PREF_CLEAR_COOKIES.equals(getKey())) {
BrowserSettings.getInstance().clearCookies(context);
} else if (BrowserSettings.PREF_CLEAR_HISTORY.equals(getKey())) {
BrowserSettings.getInstance().clearHistory(context);
} else if (BrowserSettings.PREF_CLEAR_FORM_DATA.equals(getKey())) {
BrowserSettings.getInstance().clearFormData(context);
} else if (BrowserSettings.PREF_CLEAR_PASSWORDS.equals(getKey())) {
BrowserSettings.getInstance().clearPasswords(context);
} else if (BrowserSettings.PREF_EXTRAS_RESET_DEFAULTS.equals(
getKey())) {
BrowserSettings.getInstance().resetDefaultPreferences(context);
setEnabled(true);
}
}