Add existing controllers in about phone to v2 fork
- Added build number controller - Added safety info controller - Added regulatory info controller Bug: 36458278 Test: make RunSettingsRoboTests -j40 Change-Id: Icddb9d352b4f739ca1c7cf562dec09530cb41dac
This commit is contained in:
@@ -120,6 +120,32 @@ public class DeviceInfoSettings extends DashboardFragment implements Indexable {
|
|||||||
Activity activity, Fragment fragment, Lifecycle lifecycle) {
|
Activity activity, Fragment fragment, Lifecycle lifecycle) {
|
||||||
if (FeatureFlagUtils.isEnabled(DEVICE_INFO_V2_FEATURE_FLAG)) {
|
if (FeatureFlagUtils.isEnabled(DEVICE_INFO_V2_FEATURE_FLAG)) {
|
||||||
final List<AbstractPreferenceController> controllers = new ArrayList<>();
|
final List<AbstractPreferenceController> controllers = new ArrayList<>();
|
||||||
|
|
||||||
|
// Device name
|
||||||
|
|
||||||
|
// Phone number
|
||||||
|
|
||||||
|
// SIM status
|
||||||
|
|
||||||
|
// Model & hardware
|
||||||
|
|
||||||
|
// IMEI
|
||||||
|
|
||||||
|
// Android version
|
||||||
|
|
||||||
|
// IP address
|
||||||
|
|
||||||
|
// Wifi MAC address
|
||||||
|
|
||||||
|
// Bluetooth Address
|
||||||
|
|
||||||
|
controllers.add(new RegulatoryInfoPreferenceController(context));
|
||||||
|
|
||||||
|
controllers.add(new SafetyInfoPreferenceController(context));
|
||||||
|
|
||||||
|
controllers.add(
|
||||||
|
new BuildNumberPreferenceController(context, activity, fragment, lifecycle));
|
||||||
|
|
||||||
return controllers;
|
return controllers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user