Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 931681a6 authored by jeffreyhuang's avatar jeffreyhuang
Browse files

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
parent e5fc1fbd
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -120,6 +120,32 @@ public class DeviceInfoSettings extends DashboardFragment implements Indexable {
            Activity activity, Fragment fragment, Lifecycle lifecycle) {
        if (FeatureFlagUtils.isEnabled(DEVICE_INFO_V2_FEATURE_FLAG)) {
            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;
        }