Update string for Connected devices page.
- update Bluetooth summary text "Connected to" and "Not connected" - update USB summary text "Charging" and "Supplying" - update Printing summary to "... on" or "off Change-Id: I39a809b560a5c6cc6a0e217315dfabb2c4d1a129 Fix: 36234108 Test: builds
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user