From ab1df0bbd352b0fe5c5ecb2db707d03589a3fe04 Mon Sep 17 00:00:00 2001 From: jackqdyulei Date: Wed, 31 May 2017 16:17:51 -0700 Subject: [PATCH] Update bluetooth strings Update based on new change in doc: 1. revert "visible as" string 2. change "device mac" string Bug: 35876580 Test: RunSettingsRoboTests Change-Id: I8950ed3e2e9c000ab25ea0a3d0d15f69fc075fda --- res/values/strings.xml | 8 ++++---- .../BluetoothDeviceNamePreferenceControllerTest.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 19bf0ce57f1..ffa73b35a6b 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -258,11 +258,11 @@ %1$s is visible to nearby devices while Bluetooth settings is open. - Your phone\'s Bluetooth address: %1$s + Phone\'s Bluetooth address: %1$s - Your tablet\'s Bluetooth address: %1$s + Tablet\'s Bluetooth address: %1$s - Your device\'s Bluetooth address: %1$s + Device\'s Bluetooth address: %1$s Disconnect %1$s? @@ -387,7 +387,7 @@ %1$s wants to access your SIM card. Granting access to the SIM card will disable data connectivity on your device for the duration of the connection. Give access to %2$s? - Visible to other devices as: ^1 + Visible as \'^1\' to other devices Your devices diff --git a/tests/robotests/src/com/android/settings/bluetooth/BluetoothDeviceNamePreferenceControllerTest.java b/tests/robotests/src/com/android/settings/bluetooth/BluetoothDeviceNamePreferenceControllerTest.java index 7c1fc1cc459..d6077d8facb 100644 --- a/tests/robotests/src/com/android/settings/bluetooth/BluetoothDeviceNamePreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/bluetooth/BluetoothDeviceNamePreferenceControllerTest.java @@ -94,7 +94,7 @@ public class BluetoothDeviceNamePreferenceControllerTest { final Object[] spans = ((SpannableStringBuilder) summary).getSpans(0, summary.length(), Object.class); assertThat(summary.toString()) - .isEqualTo("Visible to other devices as: Nightshade"); + .isEqualTo("Visible as 'Nightshade' to other devices"); // Test summary only has one color span assertThat(spans).asList().hasSize(1);