diff --git a/res/values/strings.xml b/res/values/strings.xml index eb273107459..3baef0ad649 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -4249,12 +4249,12 @@ Printing - No print service + Off - 1 print service - %1$d print services + 1 print service on + %1$d print services on @@ -7230,7 +7230,7 @@ - Charge this device + Charging this device @@ -7238,7 +7238,7 @@ - Supply power + Supplying power @@ -7938,9 +7938,12 @@ Premium SMS access - + Not visible to other devices + + Connected to + System UI demo mode diff --git a/src/com/android/settings/bluetooth/BluetoothSummaryUpdater.java b/src/com/android/settings/bluetooth/BluetoothSummaryUpdater.java index dc37efc10f5..282f6130e14 100644 --- a/src/com/android/settings/bluetooth/BluetoothSummaryUpdater.java +++ b/src/com/android/settings/bluetooth/BluetoothSummaryUpdater.java @@ -98,13 +98,13 @@ public final class BluetoothSummaryUpdater extends SummaryUpdater implements Blu } switch (mConnectionState) { case BluetoothAdapter.STATE_CONNECTED: - return mContext.getString(R.string.bluetooth_connected); + return mContext.getString(R.string.bluetooth_connected_summary); case BluetoothAdapter.STATE_CONNECTING: return mContext.getString(R.string.bluetooth_connecting); case BluetoothAdapter.STATE_DISCONNECTING: return mContext.getString(R.string.bluetooth_disconnecting); default: - return mContext.getString(R.string.bluetooth_disconnected); + return mContext.getString(R.string.disconnected); } } diff --git a/tests/robotests/src/com/android/settings/bluetooth/BluetoothSummaryUpdaterTest.java b/tests/robotests/src/com/android/settings/bluetooth/BluetoothSummaryUpdaterTest.java index a2770a0ecd8..cc059ad9886 100644 --- a/tests/robotests/src/com/android/settings/bluetooth/BluetoothSummaryUpdaterTest.java +++ b/tests/robotests/src/com/android/settings/bluetooth/BluetoothSummaryUpdaterTest.java @@ -86,7 +86,8 @@ public class BluetoothSummaryUpdaterTest { public void register_true_shouldSendSummaryChange() { mSummaryUpdater.register(true); - verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_connected)); + verify(mListener).onSummaryChanged( + mContext.getString(R.string.bluetooth_connected_summary)); } @Test @@ -102,7 +103,8 @@ public class BluetoothSummaryUpdaterTest { mSummaryUpdater.register(true); mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_ON); - verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_connected)); + verify(mListener).onSummaryChanged( + mContext.getString(R.string.bluetooth_connected_summary)); } @Test @@ -111,7 +113,8 @@ public class BluetoothSummaryUpdaterTest { mSummaryUpdater.register(true); mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_TURNING_ON); - verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_disconnected)); + verify(mListener).onSummaryChanged( + mContext.getString(R.string.disconnected)); } @Test @@ -128,7 +131,8 @@ public class BluetoothSummaryUpdaterTest { mSummaryUpdater.onConnectionStateChanged(null /* device */, BluetoothAdapter.STATE_CONNECTED); - verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_connected)); + verify(mListener).onSummaryChanged( + mContext.getString(R.string.bluetooth_connected_summary)); } @Test @@ -137,7 +141,8 @@ public class BluetoothSummaryUpdaterTest { mSummaryUpdater.onConnectionStateChanged(null /* device */, BluetoothAdapter.STATE_CONNECTED); - verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_disconnected)); + verify(mListener).onSummaryChanged( + mContext.getString(R.string.disconnected)); } @Test