From 7ce80425eeb4028b984d7d3d3bbd019bf8a5b815 Mon Sep 17 00:00:00 2001 From: Hugh Chen Date: Thu, 3 Jun 2021 16:38:24 +0800 Subject: [PATCH] RESTRICT AUTOMERGE Update string 1. Replace "An untrusted Bluetooth device" to "A Bluetooth device". 2. Replace "Deny" to "Don't allow" https://docs.google.com/document/d/18bVSIAyX4MNpNeCvxqyZu7CXcBUcdV0pnh-gzVprjqU/edit?ts=60709637 Bug: 167403112 Test: send intent to test right prompts message is pop up. make -j42 RunSettingsRoboTests Change-Id: I38da15d4b1fb08671f6352458cbf3f735b4083bc (cherry picked from commit 38fc9a91b53e82c092c1324f5ba3085740e7dcdf) --- res/values/strings.xml | 11 +++++++---- .../bluetooth/BluetoothPermissionActivity.java | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index e4906af075f..70e7f17d5a9 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -11316,15 +11316,18 @@ Settings managed by your IT admin - Untrusted device wants to access your messages. Tap for details. + A device wants to access your messages. Tap for details. Allow access to messages? - An untrusted Bluetooth device, %1$s, wants to access your messages.\n\nYou haven\u2019t connected to %2$s before. + A Bluetooth device, %1$s, wants to access your messages.\n\nYou haven\u2019t connected to %2$s before. - Untrusted device wants to access your contacts and call log. Tap for details. + A device wants to access your contacts and call log. Tap for details. Allow access to contacts and call log? - An untrusted Bluetooth device, %1$s, wants to access your contacts and call log. This includes data about incoming and outgoing calls.\n\nYou haven\u2019t connected to %2$s before. + A Bluetooth device, %1$s, wants to access your contacts and call log. This includes data about incoming and outgoing calls.\n\nYou haven\u2019t connected to %2$s before. + + + Don\u2019t allow diff --git a/src/com/android/settings/bluetooth/BluetoothPermissionActivity.java b/src/com/android/settings/bluetooth/BluetoothPermissionActivity.java index 0cca4a4ec51..8794b08129b 100644 --- a/src/com/android/settings/bluetooth/BluetoothPermissionActivity.java +++ b/src/com/android/settings/bluetooth/BluetoothPermissionActivity.java @@ -135,7 +135,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements } p.mPositiveButtonText = getString(R.string.allow); p.mPositiveButtonListener = this; - p.mNegativeButtonText = getString(R.string.deny); + p.mNegativeButtonText = getString(R.string.request_manage_bluetooth_permission_dont_allow); p.mNegativeButtonListener = this; mOkButton = mAlert.getButton(DialogInterface.BUTTON_POSITIVE); setupAlert();