Settings: Update notification listener user prompt strings.
Bug: 20926937 Change-Id: I85e1e103511155f854478b773ddc45dc88c96c12
This commit is contained in:
@@ -6059,19 +6059,18 @@
|
|||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<!-- String to show in the list of notification listeners, when none is installed -->
|
<!-- String to show in the list of notification listeners, when none is installed -->
|
||||||
<string name="no_notification_listeners">No notification listeners are installed.</string>
|
<string name="no_notification_listeners">No installed apps have requested notification access.</string>
|
||||||
|
|
||||||
<!-- Title for a warning message about security implications of enabling a notification
|
<!-- Title for a warning message about security implications of enabling a notification
|
||||||
listener, displayed as a dialog message. [CHAR LIMIT=NONE] -->
|
listener, displayed as a dialog message. [CHAR LIMIT=NONE] -->
|
||||||
<string name="notification_listener_security_warning_title">Enable
|
<string name="notification_listener_security_warning_title">Allow notification access for
|
||||||
<xliff:g id="service" example="NotificationReader">%1$s</xliff:g>?</string>
|
<xliff:g id="service" example="NotificationReader">%1$s</xliff:g>?</string>
|
||||||
<!-- Summary for a warning message about security implications of enabling a notification
|
<!-- Summary for a warning message about security implications of enabling a notification
|
||||||
listener, displayed as a dialog message. [CHAR LIMIT=NONE] -->
|
listener, displayed as a dialog message. [CHAR LIMIT=NONE] -->
|
||||||
<string name="notification_listener_security_warning_summary">
|
<string name="notification_listener_security_warning_summary">
|
||||||
<xliff:g id="notification_listener_name">%1$s</xliff:g> will be able to
|
<xliff:g id="notification_listener_name">%1$s</xliff:g> will be able to read all notifications,
|
||||||
read all notifications posted by the system or any installed app, which may include personal
|
including personal information such as contact names and the text of messages you receive.
|
||||||
information such as contact names and the text of messages sent to you. It will also be able
|
It will also be able to dismiss notifications or trigger action buttons they contain.
|
||||||
to dismiss these notifications or touch action buttons within them.
|
|
||||||
</string>
|
</string>
|
||||||
|
|
||||||
<!-- Sound & notification > Advanced section: Title for managing Do Not Disturb access option. [CHAR LIMIT=40] -->
|
<!-- Sound & notification > Advanced section: Title for managing Do Not Disturb access option. [CHAR LIMIT=40] -->
|
||||||
|
@@ -160,13 +160,13 @@ public abstract class ManagedServiceSettings extends SettingsPreferenceFragment
|
|||||||
.setMessage(summary)
|
.setMessage(summary)
|
||||||
.setTitle(title)
|
.setTitle(title)
|
||||||
.setCancelable(true)
|
.setCancelable(true)
|
||||||
.setPositiveButton(android.R.string.ok,
|
.setPositiveButton(R.string.allow,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
mServiceListing.setEnabled(cn, true);
|
mServiceListing.setEnabled(cn, true);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.setNegativeButton(android.R.string.cancel,
|
.setNegativeButton(R.string.deny,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
// pass
|
// pass
|
||||||
|
Reference in New Issue
Block a user