am 6bfec2d6
: Remove all dialog icons in Settings
* commit '6bfec2d6b197068dd355bd1742179fe3da07136f': Remove all dialog icons in Settings
This commit is contained in:
@@ -270,7 +270,6 @@ public final class CredentialStorage extends Activity {
|
|||||||
private ResetDialog() {
|
private ResetDialog() {
|
||||||
AlertDialog dialog = new AlertDialog.Builder(CredentialStorage.this)
|
AlertDialog dialog = new AlertDialog.Builder(CredentialStorage.this)
|
||||||
.setTitle(android.R.string.dialog_alert_title)
|
.setTitle(android.R.string.dialog_alert_title)
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(R.string.credentials_reset_hint)
|
.setMessage(R.string.credentials_reset_hint)
|
||||||
.setPositiveButton(android.R.string.ok, this)
|
.setPositiveButton(android.R.string.ok, this)
|
||||||
.setNegativeButton(android.R.string.cancel, this)
|
.setNegativeButton(android.R.string.cancel, this)
|
||||||
@@ -340,7 +339,6 @@ public final class CredentialStorage extends Activity {
|
|||||||
private ConfigureKeyGuardDialog() {
|
private ConfigureKeyGuardDialog() {
|
||||||
AlertDialog dialog = new AlertDialog.Builder(CredentialStorage.this)
|
AlertDialog dialog = new AlertDialog.Builder(CredentialStorage.this)
|
||||||
.setTitle(android.R.string.dialog_alert_title)
|
.setTitle(android.R.string.dialog_alert_title)
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(R.string.credentials_configure_lock_screen_hint)
|
.setMessage(R.string.credentials_configure_lock_screen_hint)
|
||||||
.setPositiveButton(android.R.string.ok, this)
|
.setPositiveButton(android.R.string.ok, this)
|
||||||
.setNegativeButton(android.R.string.cancel, this)
|
.setNegativeButton(android.R.string.cancel, this)
|
||||||
|
@@ -87,7 +87,6 @@ public class CryptKeeperSettings extends Fragment {
|
|||||||
// TODO replace (or follow) this dialog with an explicit launch into password UI
|
// TODO replace (or follow) this dialog with an explicit launch into password UI
|
||||||
new AlertDialog.Builder(getActivity())
|
new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(R.string.crypt_keeper_dialog_need_password_title)
|
.setTitle(R.string.crypt_keeper_dialog_need_password_title)
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(R.string.crypt_keeper_dialog_need_password_message)
|
.setMessage(R.string.crypt_keeper_dialog_need_password_message)
|
||||||
.setPositiveButton(android.R.string.ok, null)
|
.setPositiveButton(android.R.string.ok, null)
|
||||||
.create()
|
.create()
|
||||||
|
@@ -1239,7 +1239,6 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
|
|||||||
getActivity().getResources().getString(
|
getActivity().getResources().getString(
|
||||||
R.string.dev_settings_warning_message))
|
R.string.dev_settings_warning_message))
|
||||||
.setTitle(R.string.dev_settings_warning_title)
|
.setTitle(R.string.dev_settings_warning_title)
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setPositiveButton(android.R.string.yes, this)
|
.setPositiveButton(android.R.string.yes, this)
|
||||||
.setNegativeButton(android.R.string.no, this)
|
.setNegativeButton(android.R.string.no, this)
|
||||||
.show();
|
.show();
|
||||||
@@ -1280,7 +1279,6 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
|
|||||||
mAdbDialog = new AlertDialog.Builder(getActivity()).setMessage(
|
mAdbDialog = new AlertDialog.Builder(getActivity()).setMessage(
|
||||||
getActivity().getResources().getString(R.string.adb_warning_message))
|
getActivity().getResources().getString(R.string.adb_warning_message))
|
||||||
.setTitle(R.string.adb_warning_title)
|
.setTitle(R.string.adb_warning_title)
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setPositiveButton(android.R.string.yes, this)
|
.setPositiveButton(android.R.string.yes, this)
|
||||||
.setNegativeButton(android.R.string.no, this)
|
.setNegativeButton(android.R.string.no, this)
|
||||||
.show();
|
.show();
|
||||||
|
@@ -119,7 +119,6 @@ public class PrivacySettings extends SettingsPreferenceFragment implements
|
|||||||
// TODO: DialogFragment?
|
// TODO: DialogFragment?
|
||||||
mConfirmDialog = new AlertDialog.Builder(getActivity()).setMessage(msg)
|
mConfirmDialog = new AlertDialog.Builder(getActivity()).setMessage(msg)
|
||||||
.setTitle(R.string.backup_erase_dialog_title)
|
.setTitle(R.string.backup_erase_dialog_title)
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setPositiveButton(android.R.string.ok, this)
|
.setPositiveButton(android.R.string.ok, this)
|
||||||
.setNegativeButton(android.R.string.cancel, this)
|
.setNegativeButton(android.R.string.cancel, this)
|
||||||
.show();
|
.show();
|
||||||
|
@@ -163,7 +163,6 @@ public class ToggleAccessibilityServicePreferenceFragment
|
|||||||
AlertDialog ad = new AlertDialog.Builder(getActivity())
|
AlertDialog ad = new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getString(R.string.enable_service_title,
|
.setTitle(getString(R.string.enable_service_title,
|
||||||
info.getResolveInfo().loadLabel(getPackageManager())))
|
info.getResolveInfo().loadLabel(getPackageManager())))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setView(createEnableDialogContentView(info))
|
.setView(createEnableDialogContentView(info))
|
||||||
.setCancelable(true)
|
.setCancelable(true)
|
||||||
.setPositiveButton(android.R.string.ok, this)
|
.setPositiveButton(android.R.string.ok, this)
|
||||||
@@ -182,7 +181,6 @@ public class ToggleAccessibilityServicePreferenceFragment
|
|||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getString(R.string.disable_service_title,
|
.setTitle(getString(R.string.disable_service_title,
|
||||||
info.getResolveInfo().loadLabel(getPackageManager())))
|
info.getResolveInfo().loadLabel(getPackageManager())))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(getString(R.string.disable_service_message,
|
.setMessage(getString(R.string.disable_service_message,
|
||||||
info.getResolveInfo().loadLabel(getPackageManager())))
|
info.getResolveInfo().loadLabel(getPackageManager())))
|
||||||
.setCancelable(true)
|
.setCancelable(true)
|
||||||
|
@@ -1109,7 +1109,6 @@ public class InstalledAppDetails extends Fragment
|
|||||||
case DLG_CLEAR_DATA:
|
case DLG_CLEAR_DATA:
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getActivity().getText(R.string.clear_data_dlg_title))
|
.setTitle(getActivity().getText(R.string.clear_data_dlg_title))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(getActivity().getText(R.string.clear_data_dlg_text))
|
.setMessage(getActivity().getText(R.string.clear_data_dlg_text))
|
||||||
.setPositiveButton(R.string.dlg_ok,
|
.setPositiveButton(R.string.dlg_ok,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
@@ -1123,7 +1122,6 @@ public class InstalledAppDetails extends Fragment
|
|||||||
case DLG_FACTORY_RESET:
|
case DLG_FACTORY_RESET:
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getActivity().getText(R.string.app_factory_reset_dlg_title))
|
.setTitle(getActivity().getText(R.string.app_factory_reset_dlg_title))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(getActivity().getText(R.string.app_factory_reset_dlg_text))
|
.setMessage(getActivity().getText(R.string.app_factory_reset_dlg_text))
|
||||||
.setPositiveButton(R.string.dlg_ok,
|
.setPositiveButton(R.string.dlg_ok,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
@@ -1138,7 +1136,6 @@ public class InstalledAppDetails extends Fragment
|
|||||||
case DLG_APP_NOT_FOUND:
|
case DLG_APP_NOT_FOUND:
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getActivity().getText(R.string.app_not_found_dlg_title))
|
.setTitle(getActivity().getText(R.string.app_not_found_dlg_title))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(getActivity().getText(R.string.app_not_found_dlg_title))
|
.setMessage(getActivity().getText(R.string.app_not_found_dlg_title))
|
||||||
.setNeutralButton(getActivity().getText(R.string.dlg_ok),
|
.setNeutralButton(getActivity().getText(R.string.dlg_ok),
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
@@ -1151,7 +1148,6 @@ public class InstalledAppDetails extends Fragment
|
|||||||
case DLG_CANNOT_CLEAR_DATA:
|
case DLG_CANNOT_CLEAR_DATA:
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getActivity().getText(R.string.clear_failed_dlg_title))
|
.setTitle(getActivity().getText(R.string.clear_failed_dlg_title))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(getActivity().getText(R.string.clear_failed_dlg_text))
|
.setMessage(getActivity().getText(R.string.clear_failed_dlg_text))
|
||||||
.setNeutralButton(R.string.dlg_ok,
|
.setNeutralButton(R.string.dlg_ok,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
@@ -1165,7 +1161,6 @@ public class InstalledAppDetails extends Fragment
|
|||||||
case DLG_FORCE_STOP:
|
case DLG_FORCE_STOP:
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getActivity().getText(R.string.force_stop_dlg_title))
|
.setTitle(getActivity().getText(R.string.force_stop_dlg_title))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(getActivity().getText(R.string.force_stop_dlg_text))
|
.setMessage(getActivity().getText(R.string.force_stop_dlg_text))
|
||||||
.setPositiveButton(R.string.dlg_ok,
|
.setPositiveButton(R.string.dlg_ok,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
@@ -1181,14 +1176,12 @@ public class InstalledAppDetails extends Fragment
|
|||||||
getOwner().getMoveErrMsg(moveErrorCode));
|
getOwner().getMoveErrMsg(moveErrorCode));
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getActivity().getText(R.string.move_app_failed_dlg_title))
|
.setTitle(getActivity().getText(R.string.move_app_failed_dlg_title))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(msg)
|
.setMessage(msg)
|
||||||
.setNeutralButton(R.string.dlg_ok, null)
|
.setNeutralButton(R.string.dlg_ok, null)
|
||||||
.create();
|
.create();
|
||||||
case DLG_DISABLE:
|
case DLG_DISABLE:
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getActivity().getText(R.string.app_disable_dlg_title))
|
.setTitle(getActivity().getText(R.string.app_disable_dlg_title))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(getActivity().getText(R.string.app_disable_dlg_text))
|
.setMessage(getActivity().getText(R.string.app_disable_dlg_text))
|
||||||
.setPositiveButton(R.string.dlg_ok,
|
.setPositiveButton(R.string.dlg_ok,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
@@ -1204,7 +1197,6 @@ public class InstalledAppDetails extends Fragment
|
|||||||
case DLG_DISABLE_NOTIFICATIONS:
|
case DLG_DISABLE_NOTIFICATIONS:
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getActivity().getText(R.string.app_disable_notifications_dlg_title))
|
.setTitle(getActivity().getText(R.string.app_disable_notifications_dlg_title))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(getActivity().getText(R.string.app_disable_notifications_dlg_text))
|
.setMessage(getActivity().getText(R.string.app_disable_notifications_dlg_text))
|
||||||
.setPositiveButton(R.string.dlg_ok,
|
.setPositiveButton(R.string.dlg_ok,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
@@ -1224,7 +1216,6 @@ public class InstalledAppDetails extends Fragment
|
|||||||
case DLG_SPECIAL_DISABLE:
|
case DLG_SPECIAL_DISABLE:
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getActivity().getText(R.string.app_special_disable_dlg_title))
|
.setTitle(getActivity().getText(R.string.app_special_disable_dlg_title))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(getActivity().getText(R.string.app_special_disable_dlg_text))
|
.setMessage(getActivity().getText(R.string.app_special_disable_dlg_text))
|
||||||
.setPositiveButton(R.string.dlg_ok,
|
.setPositiveButton(R.string.dlg_ok,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
|
@@ -583,7 +583,6 @@ public class RunningServiceDetails extends Fragment
|
|||||||
|
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getActivity().getString(R.string.runningservicedetails_stop_dlg_title))
|
.setTitle(getActivity().getString(R.string.runningservicedetails_stop_dlg_title))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(getActivity().getString(R.string.runningservicedetails_stop_dlg_text))
|
.setMessage(getActivity().getString(R.string.runningservicedetails_stop_dlg_text))
|
||||||
.setPositiveButton(R.string.dlg_ok,
|
.setPositiveButton(R.string.dlg_ok,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
|
@@ -93,7 +93,6 @@ final class Utils {
|
|||||||
Context activity = manager.getForegroundActivity();
|
Context activity = manager.getForegroundActivity();
|
||||||
if(manager.isForegroundActivity()) {
|
if(manager.isForegroundActivity()) {
|
||||||
new AlertDialog.Builder(activity)
|
new AlertDialog.Builder(activity)
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setTitle(R.string.bluetooth_error_title)
|
.setTitle(R.string.bluetooth_error_title)
|
||||||
.setMessage(message)
|
.setMessage(message)
|
||||||
.setPositiveButton(android.R.string.ok, null)
|
.setPositiveButton(android.R.string.ok, null)
|
||||||
|
@@ -166,7 +166,6 @@ public class InputMethodAndSubtypeEnabler extends SettingsPreferenceFragment {
|
|||||||
if (mDialog == null) {
|
if (mDialog == null) {
|
||||||
mDialog = (new AlertDialog.Builder(getActivity()))
|
mDialog = (new AlertDialog.Builder(getActivity()))
|
||||||
.setTitle(android.R.string.dialog_alert_title)
|
.setTitle(android.R.string.dialog_alert_title)
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setCancelable(true)
|
.setCancelable(true)
|
||||||
.setPositiveButton(android.R.string.ok,
|
.setPositiveButton(android.R.string.ok,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
|
@@ -265,7 +265,6 @@ public class InputMethodPreference extends CheckBoxPreference {
|
|||||||
}
|
}
|
||||||
mDialog = (new AlertDialog.Builder(mFragment.getActivity()))
|
mDialog = (new AlertDialog.Builder(mFragment.getActivity()))
|
||||||
.setTitle(android.R.string.dialog_alert_title)
|
.setTitle(android.R.string.dialog_alert_title)
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setCancelable(true)
|
.setCancelable(true)
|
||||||
.setPositiveButton(android.R.string.ok,
|
.setPositiveButton(android.R.string.ok,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
|
@@ -122,7 +122,6 @@ public class SpellCheckersSettings extends SettingsPreferenceFragment
|
|||||||
}
|
}
|
||||||
mDialog = (new AlertDialog.Builder(getActivity()))
|
mDialog = (new AlertDialog.Builder(getActivity()))
|
||||||
.setTitle(android.R.string.dialog_alert_title)
|
.setTitle(android.R.string.dialog_alert_title)
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setCancelable(true)
|
.setCancelable(true)
|
||||||
.setPositiveButton(android.R.string.ok,
|
.setPositiveButton(android.R.string.ok,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
|
@@ -106,7 +106,6 @@ public abstract class ManagedServiceSettings extends ListFragment {
|
|||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setMessage(summary)
|
.setMessage(summary)
|
||||||
.setTitle(title)
|
.setTitle(title)
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setCancelable(true)
|
.setCancelable(true)
|
||||||
.setPositiveButton(android.R.string.ok,
|
.setPositiveButton(android.R.string.ok,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
|
@@ -195,7 +195,6 @@ public class PrintServiceSettingsFragment extends SettingsPreferenceFragment
|
|||||||
}
|
}
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(title)
|
.setTitle(title)
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(message)
|
.setMessage(message)
|
||||||
.setCancelable(true)
|
.setCancelable(true)
|
||||||
.setPositiveButton(android.R.string.ok, this)
|
.setPositiveButton(android.R.string.ok, this)
|
||||||
|
@@ -153,7 +153,6 @@ public class QuickLaunchSettings extends SettingsPreferenceFragment implements
|
|||||||
// Create the dialog for clearing a shortcut
|
// Create the dialog for clearing a shortcut
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(getString(R.string.quick_launch_clear_dialog_title))
|
.setTitle(getString(R.string.quick_launch_clear_dialog_title))
|
||||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
|
||||||
.setMessage(getString(R.string.quick_launch_clear_dialog_message,
|
.setMessage(getString(R.string.quick_launch_clear_dialog_message,
|
||||||
mClearDialogShortcut, mClearDialogBookmarkTitle))
|
mClearDialogShortcut, mClearDialogBookmarkTitle))
|
||||||
.setPositiveButton(R.string.quick_launch_clear_ok_button, this)
|
.setPositiveButton(R.string.quick_launch_clear_ok_button, this)
|
||||||
|
@@ -482,11 +482,10 @@ public class TextToSpeechSettings extends SettingsPreferenceFragment implements
|
|||||||
|
|
||||||
private void displayNetworkAlert() {
|
private void displayNetworkAlert() {
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
||||||
builder.setTitle(android.R.string.dialog_alert_title);
|
builder.setTitle(android.R.string.dialog_alert_title)
|
||||||
builder.setIconAttribute(android.R.attr.alertDialogIcon);
|
.setMessage(getActivity().getString(R.string.tts_engine_network_required))
|
||||||
builder.setMessage(getActivity().getString(R.string.tts_engine_network_required));
|
.setCancelable(false)
|
||||||
builder.setCancelable(false);
|
.setPositiveButton(android.R.string.ok, null);
|
||||||
builder.setPositiveButton(android.R.string.ok, null);
|
|
||||||
|
|
||||||
AlertDialog dialog = builder.create();
|
AlertDialog dialog = builder.create();
|
||||||
dialog.show();
|
dialog.show();
|
||||||
|
@@ -198,13 +198,12 @@ public class TtsEnginePreference extends Preference {
|
|||||||
Log.i(TAG, "Displaying data alert for :" + mEngineInfo.name);
|
Log.i(TAG, "Displaying data alert for :" + mEngineInfo.name);
|
||||||
|
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
|
AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
|
||||||
builder.setTitle(android.R.string.dialog_alert_title);
|
builder.setTitle(android.R.string.dialog_alert_title)
|
||||||
builder.setIconAttribute(android.R.attr.alertDialogIcon);
|
.setMessage(getContext().getString(
|
||||||
builder.setMessage(getContext().getString(
|
R.string.tts_engine_security_warning, mEngineInfo.label))
|
||||||
R.string.tts_engine_security_warning, mEngineInfo.label));
|
.setCancelable(true)
|
||||||
builder.setCancelable(true);
|
.setPositiveButton(android.R.string.ok, positiveOnClickListener)
|
||||||
builder.setPositiveButton(android.R.string.ok, positiveOnClickListener);
|
.setNegativeButton(android.R.string.cancel, negativeOnClickListener);
|
||||||
builder.setNegativeButton(android.R.string.cancel, negativeOnClickListener);
|
|
||||||
|
|
||||||
AlertDialog dialog = builder.create();
|
AlertDialog dialog = builder.create();
|
||||||
dialog.show();
|
dialog.show();
|
||||||
|
@@ -202,7 +202,6 @@ public class RestrictedProfileSettings extends AppRestrictionsFragment {
|
|||||||
|
|
||||||
mEditUserInfoDialog = new AlertDialog.Builder(getActivity())
|
mEditUserInfoDialog = new AlertDialog.Builder(getActivity())
|
||||||
.setTitle(R.string.profile_info_settings_title)
|
.setTitle(R.string.profile_info_settings_title)
|
||||||
.setIconAttribute(R.drawable.ic_settings_multiuser)
|
|
||||||
.setView(content)
|
.setView(content)
|
||||||
.setCancelable(true)
|
.setCancelable(true)
|
||||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||||
|
Reference in New Issue
Block a user