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

Commit 03d78c73 authored by Chirayu Desai's avatar Chirayu Desai Committed by Bruno Martins
Browse files

Settings: Launch the development tools

Change-Id: I0f798d197888ef7f40688009536040e061c410f4
parent 301a4abb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -78,6 +78,9 @@
    <string name="kill_app_longpress_back">Kill app back button</string>
    <string name="kill_app_longpress_back_summary">Kill the foreground app by long-pressing the back button</string>

    <!-- Launch Dev Tools -->
    <string name="development_tools_title">Development tools</string>

    <!-- Lock screen cover art -->
    <string name="lockscreen_media_art_title">Display media cover art</string>

+10 −0
Original line number Diff line number Diff line
@@ -23,6 +23,16 @@
        android:key="debug_misc_category"
        android:order="100">

        <Preference
            android:key="development_tools"
            android:title="@string/development_tools_title"
            android:persistent="false">
            <intent
                android:action="android.settings.development.LAUNCH_TOOLS"
                android:targetPackage="com.android.development"
                android:targetClass="com.android.development.Development" />
        </Preference>

        <Preference
            android:key="memory"
            android:icon="@drawable/ic_settings_memory"
+1 −0
Original line number Diff line number Diff line
@@ -392,6 +392,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
            Activity activity, Lifecycle lifecycle, DevelopmentSettingsDashboardFragment fragment,
            BluetoothA2dpConfigStore bluetoothA2dpConfigStore) {
        final List<AbstractPreferenceController> controllers = new ArrayList<>();
        controllers.add(new DefaultLaunchPreferenceController(context, "development_tools"));
        controllers.add(new MemoryUsagePreferenceController(context));
        controllers.add(new BugReportPreferenceController(context));
        controllers.add(new LocalBackupPasswordPreferenceController(context));