• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


Commit MetaInfo

Revisione20cd41520d44d3accb28b5ed65da68a174a955c (tree)
Zeit2021-07-01 20:01:39
AutorHugh Chen <hughchen@goog...>
CommiterAndroid Build Coastguard Worker

Log Message

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)
(cherry picked from commit f4f2fae30639266131b847260e7fc1b20c2dfa31)

Ändern Zusammenfassung

Diff

--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -12198,15 +12198,18 @@
1219812198 <string name="aware_summary_when_bedtime_on">Unavailable because bedtime mode is on</string>
1219912199
1220012200 <!-- Bluetooth message permission alert for notification content [CHAR LIMIT=none] -->
12201- <string name="bluetooth_message_access_notification_content">Untrusted device wants to access your messages. Tap for details.</string>
12201+ <string name="bluetooth_message_access_notification_content">A device wants to access your messages. Tap for details.</string>
1220212202 <!-- Bluetooth message permission alert for dialog title [CHAR LIMIT=none] -->
1220312203 <string name="bluetooth_message_access_dialog_title">Allow access to messages?</string>
1220412204 <!-- Bluetooth message permission alert for dialog content [CHAR LIMIT=none] -->
12205- <string name="bluetooth_message_access_dialog_content">An untrusted Bluetooth device, <xliff:g id="device_name" example="My device">%1$s</xliff:g>, wants to access your messages.\n\nYou haven\u2019t connected to <xliff:g id="device_name" example="My device">%2$s</xliff:g> before.</string>
12205+ <string name="bluetooth_message_access_dialog_content">A Bluetooth device, <xliff:g id="device_name" example="My device">%1$s</xliff:g>, wants to access your messages.\n\nYou haven\u2019t connected to <xliff:g id="device_name" example="My device">%2$s</xliff:g> before.</string>
1220612206 <!-- Bluetooth phonebook permission alert for notification content [CHAR LIMIT=none] -->
12207- <string name="bluetooth_phonebook_access_notification_content">Untrusted device wants to access your contacts and call log. Tap for details.</string>
12207+ <string name="bluetooth_phonebook_access_notification_content">A device wants to access your contacts and call log. Tap for details.</string>
1220812208 <!-- Bluetooth phonebook permission alert for dialog title [CHAR LIMIT=none] -->
1220912209 <string name="bluetooth_phonebook_access_dialog_title">Allow access to contacts and call log?</string>
1221012210 <!-- Bluetooth phonebook permission alert for dialog content [CHAR LIMIT=none] -->
12211- <string name="bluetooth_phonebook_access_dialog_content">An untrusted Bluetooth device, <xliff:g id="device_name" example="My device">%1$s</xliff:g>, wants to access your contacts and call log. This includes data about incoming and outgoing calls.\n\nYou haven\u2019t connected to <xliff:g id="device_name" example="My device">%2$s</xliff:g> before.</string>
12211+ <string name="bluetooth_phonebook_access_dialog_content">A Bluetooth device, <xliff:g id="device_name" example="My device">%1$s</xliff:g>, wants to access your contacts and call log. This includes data about incoming and outgoing calls.\n\nYou haven\u2019t connected to <xliff:g id="device_name" example="My device">%2$s</xliff:g> before.</string>
12212+
12213+ <!-- Label for button to not allow grant the permission for remote devices. [CHAR_LIMIT=50] -->
12214+ <string name="request_manage_bluetooth_permission_dont_allow">Don\u2019t allow</string>
1221212215 </resources>
--- 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
135135 }
136136 p.mPositiveButtonText = getString(R.string.allow);
137137 p.mPositiveButtonListener = this;
138- p.mNegativeButtonText = getString(R.string.deny);
138+ p.mNegativeButtonText = getString(R.string.request_manage_bluetooth_permission_dont_allow);
139139 p.mNegativeButtonListener = this;
140140 mOkButton = mAlert.getButton(DialogInterface.BUTTON_POSITIVE);
141141 setupAlert();