From 53a5d7ff2ce3ab446f4ad046e6703ed2caa18fa4 Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Thu, 18 Jun 2015 10:46:55 -0400 Subject: [PATCH] Update disable dialog Bug: 20826933 Change-Id: Ib84d3ba50ead2b71f62a3b163a5f5ba32a576c00 --- res/values/strings.xml | 8 ++++---- src/com/android/settings/applications/InstalledAppDetails.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 6169fc9ad3..6a09f5961e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -3243,14 +3243,14 @@ Change the preferred installation location for new apps Disable built-in app? + + Disable app - If you disable a built-in app, other apps - may misbehave. + If you disable this app, other apps may no longer function as intended. Delete data and disable app? - If you disable a built-in app, other apps - may misbehave. Your data will also be deleted. + If you disable this app, other apps may no longer function as intended. Your data will also be deleted. Turn off notifications? diff --git a/src/com/android/settings/applications/InstalledAppDetails.java b/src/com/android/settings/applications/InstalledAppDetails.java index 6fd3d951a5..e78c69785a 100755 --- a/src/com/android/settings/applications/InstalledAppDetails.java +++ b/src/com/android/settings/applications/InstalledAppDetails.java @@ -560,9 +560,9 @@ public class InstalledAppDetails extends AppInfoBase switch (id) { case DLG_DISABLE: return new AlertDialog.Builder(getActivity()) - .setTitle(getActivity().getText(R.string.app_disable_dlg_title)) .setMessage(getActivity().getText(R.string.app_disable_dlg_text)) - .setPositiveButton(R.string.dlg_ok, new DialogInterface.OnClickListener() { + .setPositiveButton(R.string.app_disable_dlg_positive, + new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // Disable the app new DisableChanger(InstalledAppDetails.this, mAppEntry.info, @@ -574,9 +574,9 @@ public class InstalledAppDetails extends AppInfoBase .create(); case DLG_SPECIAL_DISABLE: return new AlertDialog.Builder(getActivity()) - .setTitle(getActivity().getText(R.string.app_special_disable_dlg_title)) .setMessage(getActivity().getText(R.string.app_special_disable_dlg_text)) - .setPositiveButton(R.string.dlg_ok, new DialogInterface.OnClickListener() { + .setPositiveButton(R.string.app_disable_dlg_positive, + new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // Clear user data here uninstallPkg(mAppEntry.info.packageName, -- 2.11.0