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

Commit 1a6796be authored by Mohit Mali's avatar Mohit Mali Committed by Nishith Khanna
Browse files

Settings: Move updater to top of settings main page

parent f5e006c2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -20,4 +20,7 @@

    <!-- /e/ legal. -->
    <string name="elicense_title">/e/ legal</string>

    <!-- /e/ updater -->
    <string name="system_update_summary">Updates, preferences, release notes</string>
</resources>
+0 −11
Original line number Diff line number Diff line
@@ -102,17 +102,6 @@
                android:targetClass="@string/additional_system_update_menu"/>
    </Preference>

    <Preference
        android:key="system_update_settings"
        android:title="@string/system_update_settings_list_item_title"
        android:summary="@string/summary_placeholder"
        android:icon="@drawable/ic_system_update"
        android:order="-58"
        settings:keywords="@string/keywords_system_update_settings"
        settings:controller="com.android.settings.system.SystemUpdatePreferenceController">
        <intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS"/>
    </Preference>

    <Preference
        android:key="system_multiuser"
        android:title="@string/user_settings_title"
+12 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2018 The Android Open Source Project
  Copyright (C) 2019-2021 ECORP SAS

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
@@ -20,6 +21,17 @@
    xmlns:settings="http://schemas.android.com/apk/res-auto"
    android:key="top_level_settings">

    <com.android.settings.widget.HomepagePreference
        android:key="top_level_update"
        android:title="@string/system_update_settings_list_item_title"
        android:summary="@string/system_update_summary"
        android:icon="@drawable/ic_system_update"
        android:order="-160"
        settings:controller="com.android.settings.system.SystemUpdatePreferenceController"
        settings:keywords="@string/keywords_system_update_settings">
        <intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS" />
    </com.android.settings.widget.HomepagePreference>

    <com.android.settings.widget.HomepagePreference
        android:fragment="com.android.settings.network.NetworkDashboardFragment"
        android:icon="@drawable/ic_settings_wireless"