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

Commit d2114820 authored by Bruno Martins's avatar Bruno Martins
Browse files

LineageParts: Introduce advanced restart switch

This is probably the place where it should have been the
whole time.

Change-Id: I9c43e4c53e6817fb859e0e08f7ae2aeb0b1fa1c8
parent 015c93fe
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -255,6 +255,7 @@

    <!-- Power menu -->
    <string name="power_menu_title">Power menu</string>
    <string name="power_menu_items_title">Power menu items</string>
    <string name="power_menu_screenshot_title">Screenshot</string>
    <string name="power_menu_screenshot_summary">Long-press for partial screenshot</string>
    <string name="power_menu_airplane_title">Airplane mode</string>
@@ -263,6 +264,8 @@
    <string name="power_menu_bug_report_devoptions_unavailable">Bug reporting is disabled as development settings aren\'t enabled</string>
    <string name="power_menu_bug_report_unavailable_for_user">Bug reporting is disabled for non-primary users.</string>
    <string name="power_menu_emergency_title">Emergency</string>
    <string name="power_menu_advanced_restart_title">Advanced restart</string>
    <string name="power_menu_advanced_restart_summary">When unlocked, include options in the power menu for restarting into recovery or bootloader</string>

    <string name="camera_double_tap_power_gesture_title">Press power button twice for camera</string>

+45 −26
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2014-2015 The CyanogenMod Project
                   2017-2018,2020-2021 The LineageOS Project
                   2017-2018,2020-2022 The LineageOS Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
@@ -19,6 +19,10 @@
<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android">

    <PreferenceCategory
            android:key="power_menu_items"
            android:title="@string/power_menu_items_title">

        <CheckBoxPreference
            android:key="screenshot"
            android:title="@string/power_menu_screenshot_title"
@@ -44,4 +48,19 @@
            android:key="emergency"
            android:title="@string/power_menu_emergency_title"
            android:defaultValue="false" />

    </PreferenceCategory>

    <PreferenceCategory
            android:key="advanced"
            android:title="@string/advanced">

        <lineageos.preference.LineageSecureSettingSwitchPreference
            android:key="advanced_reboot"
            android:title="@string/power_menu_advanced_restart_title"
            android:summary="@string/power_menu_advanced_restart_summary"
            android:defaultValue="false" />

    </PreferenceCategory>

</PreferenceScreen>