Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit f87ab55

Browse files
adindotdevfazilsheik96
authored andcommitted
SomethingSettings: Add toggle for advanced reboot [2/2]
1 parent 00a03e9 commit f87ab55

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

res/values/strings.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,8 @@
152152
<!-- Text shown for the title of the restart systemui option -->
153153
<string name="power_menu_restart_systemui_title">Restart SystemUI</string>
154154

155+
<!-- Global Actions -->
156+
<string name="global_actions_advanced_reboot_title">Advanced restart</string>
157+
<string name="global_actions_advanced_reboot_summary">Show options for recovery and bootloader in power menu</string>
158+
155159
</resources>

res/xml/interface_settings.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
android:key="power_menu_category"
2828
android:title="@string/power_menu_category_title">
2929

30+
<co.aospa.framework.preference.SystemSettingSwitchPreference
31+
android:key="advanced_reboot"
32+
android:title="@string/global_actions_advanced_reboot_title"
33+
android:summary="@string/global_actions_advanced_reboot_summary"
34+
android:defaultValue="false" />
35+
3036
<co.aospa.framework.preference.SecureSettingListPreference
3137
android:key="power_menu_type"
3238
android:title="@string/power_menu_type_title"

0 commit comments

Comments
 (0)