From 90e27a4893effb17e19aef973df02333eec9614a Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Mon, 8 Jun 2015 16:50:36 -0400 Subject: [PATCH] Settings: Update notification listener user prompt strings. Bug: 20926937 Change-Id: I85e1e103511155f854478b773ddc45dc88c96c12 --- res/values/strings.xml | 11 +++++------ .../android/settings/notification/ManagedServiceSettings.java | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 4978d575d1..549a80953c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -6059,19 +6059,18 @@ - No notification listeners are installed. + No installed apps have requested notification access. - Enable + Allow notification access for %1$s? - %1$s will be able to - read all notifications posted by the system or any installed app, which may include personal - information such as contact names and the text of messages sent to you. It will also be able - to dismiss these notifications or touch action buttons within them. + %1$s will be able to read all notifications, + including personal information such as contact names and the text of messages you receive. + It will also be able to dismiss notifications or trigger action buttons they contain. diff --git a/src/com/android/settings/notification/ManagedServiceSettings.java b/src/com/android/settings/notification/ManagedServiceSettings.java index 660ea5a1f3..e9ff428aa5 100644 --- a/src/com/android/settings/notification/ManagedServiceSettings.java +++ b/src/com/android/settings/notification/ManagedServiceSettings.java @@ -160,13 +160,13 @@ public abstract class ManagedServiceSettings extends SettingsPreferenceFragment .setMessage(summary) .setTitle(title) .setCancelable(true) - .setPositiveButton(android.R.string.ok, + .setPositiveButton(R.string.allow, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { mServiceListing.setEnabled(cn, true); } }) - .setNegativeButton(android.R.string.cancel, + .setNegativeButton(R.string.deny, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // pass -- 2.11.0