Introduce BluetoothInbandRingingPreferenceCtrl
- Create new BluetoothInbandRingingPreferenceController - Create controller inside the DashboardFragment - Port logic from DevelopmentSettings into the controller Bug: 34203528 Test: make RunSettingsRoboTests -j40 Change-Id: I2551803b50323c93ce8f1595d5bbab92b7a18ed4
This commit is contained in:
@@ -114,7 +114,8 @@ public class DevelopmentSettingsDashboardFragmentTest {
|
||||
@Test
|
||||
@Config(shadows = {
|
||||
ShadowPictureColorModePreferenceController.class,
|
||||
ShadowAdbPreferenceController.class
|
||||
ShadowAdbPreferenceController.class,
|
||||
ShadowBluetoothInbandRingingPreferenceController.class
|
||||
})
|
||||
public void searchIndex_pageEnabled_shouldNotAddKeysToNonIndexable() {
|
||||
final Context appContext = RuntimeEnvironment.application;
|
||||
@@ -238,4 +239,13 @@ public class DevelopmentSettingsDashboardFragmentTest {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@Implements(BluetoothInbandRingingPreferenceController.class)
|
||||
public static class ShadowBluetoothInbandRingingPreferenceController {
|
||||
|
||||
@Implementation
|
||||
public boolean isAvailable() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user