Remove duplicate strings.
"Yes" and "no" were redefined many times with no clear benefit, so this consolidates them into one definition. Bug: 243843096 Test: Build, install, and open the Settings app Test: atest SettingsRoboTests Change-Id: I5f84d09f223efd478461ded93aeac82bf7b128d8
This commit is contained in:
@@ -132,7 +132,7 @@ public class BluetoothSummaryUpdaterTest {
|
||||
|
||||
mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_OFF);
|
||||
|
||||
verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_disabled));
|
||||
verify(mListener).onSummaryChanged(mContext.getString(R.string.off));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -197,12 +197,12 @@ public class BluetoothSummaryUpdaterTest {
|
||||
|
||||
mShadowBluetoothAdapter.setEnabled(false);
|
||||
mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_OFF);
|
||||
verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_disabled));
|
||||
verify(mListener).onSummaryChanged(mContext.getString(R.string.off));
|
||||
|
||||
// Turning ON means not enabled
|
||||
mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_TURNING_ON);
|
||||
// There should still be only one invocation of disabled message
|
||||
verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_disabled));
|
||||
verify(mListener).onSummaryChanged(mContext.getString(R.string.off));
|
||||
|
||||
mShadowBluetoothAdapter.setEnabled(true);
|
||||
mDeviceConnected[0] = false;
|
||||
|
Reference in New Issue
Block a user