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

Skip to content
Unverified Commit fdba07e4 authored by Michael Bestas's avatar Michael Bestas
Browse files

frameworks: Add support for advanced restart options



Based on the following changes:

Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Date:   Mon Nov 4 03:37:40 2013 +0000
    framework: Add advanced reboot options (2 of 2)

    This commit is an squash of the commits below and re-adds the reboot
    logic to CM.

    I took the liberty to rewrite some of the ShutdownThread code because
    it had some lingering issues present since I originally wrote this
    for CM7 (!!). Namely, the reboot reason was being changed when the items
    are pressed instead of when the user presses the positive button. This
    made some people add workarounds like handling back button presses and
    whatnot, these are gone now.

Author: Roman Birg <roman@cyngn.com>
Date:   Thu Jul 10 14:20:42 2014 -0700
    advanced reboot: add soft reboot option

    Adds a "Soft reboot" option which restarts zygote, as requested in JIRA
    CYAN-3998

    Change-Id: Ia6e5ed9b053e1c5ebd1fc55e5692858b97f7e0fc
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>

Author: Veeti Paananen <veeti.paananen@rojekti.fi>
Date:   Tue Jul 23 16:34:35 2013 +0300
    Show advanced reboot if using an insecure lock screen

    Enables the advanced reboot menu when locked if the selected lock method
    is insecure (= slide unlock).

    Change-Id: I759b7b31c5411597e2537a85183d73ec02eb2461

Author: DvTonder <david.vantonder@gmail.com>
Date:   Thu Feb 21 18:20:01 2013 -0500
    Framework: Show the Advanced reboot menu only for the primary user

    Change-Id: I73f82eade26f268e2b4608fa23cabcf0bb8fc862

Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Date:   Mon Nov 4 03:37:40 2013 +0000
    Framework: Add Advanced reboot (2 of 2)

    This commit responds to a setting in Development settings for including
    options in the power menu for rebooting into recovery or bootloader. It
    is defauled to off.

    When enabled, the Advanced reboot options will only be available once the
    device is unlocked.

    Change-Id: I2bc1e7024abb69cb62154d3081df5a3eb7e79df9

Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Fri Nov 21 23:31:53 2014 +0200
    Enhance power menu reboot option

    * Use our old reboot icon
    * Set correct dialog title & message when rebooting
    * Move strings to cm_strings
    * Add back reboot_download string used by samsung devices
    * Remove Chinese translations, will be handled through crowdin

    Change-Id: I3ba0e20dcdba0a295a071304048eebab6cfcf49d

Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Sat Jan 31 06:06:38 2015 +0200
    GlobalActions: Use circular user avatars

    * Use circular & smaller avatars, logic copied from SystemUI
    * Improve current user indication (thanks to maxwen)

    Change-Id: I81e6c4afd604f5cb8b22e2c4db9b174bbe7fb3f0
    Ticket-Id: OPO-456, CYNGNOS-1901

Author: Jorge Ruesga <jorge@ruesga.com>
Date:   Fri Oct 23 19:55:12 2015 +0200
    base: don't show reboot options for safe mode

    In a user long press in "power off" menu the system lead it to "reboot to safe mode", but if
    the our advance power menu is enabled, we are showing the reboot options instead of the
    safe mode advice message. Since reboot options doesn't made sense here is better to
    respect the original behavior.

    Change-Id: I45e7f7a780655ed79d442f583fd9ffa6fba4e447
Signed-off-by: default avatarJorge Ruesga <jorge@ruesga.com>

Author: Zhao Wei Liew <zhaoweiliew@gmail.com>
Date:   Sat Dec 10 18:07:51 2016 +0800
    core: Adjust power menu icons for 7.1

    Resize the icons to fit in with the new power off & restart icons.

    Also, use an icon without a home button for the screenshot icon,
    since home button-less phones are a growing trend.

    Change-Id: I5131346f65345010bba45dca04f3d767e6f9746a

Author: Dave Kessler <activethrasher00@gmail.com>
Date:   Wed Feb 18 10:27:58 2015 +0200
    GlobalActions: Always add power off option to power menu

    Change-Id: I3083cda3b8c665a65f1260984a5be41faa384510

Author: Zhao Wei Liew <zhaoweiliew@gmail.com>
Date:   Fri Dec 9 20:52:29 2016 +0800
    GlobalActions: Inform user of screenshot long-press action

    Long-press actions are extremely obscure.
    Hiding the partial screenshot feature behind a long-press
    action is highly detrimental to its discoverability.

    Inform the user of the screenshot long-press action
    by displaying a short summary message.

    Change-Id: I949bd0ef80a654d6cdf852b7a3138e7379ad36d2

Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Sat Nov 7 23:52:26 2015 +0200
    Fix reboot dialog messages

    * Fix mismerge
    * Fix wrong messages being displayed when rebooting to recovery

    Change-Id: I09a04cc82d48539e8086fd55c30d6160c292bc08

Author: maxwen <max.weninger@gmail.com>
Date:   Fri Nov 15 00:16:26 2019 +0100
    SystemUI: Add reboot fastboot to power menu

    Change-Id: I88f00a273f4a0be1355158c58a24db78cb8e684e

Author: Bruno Martins <bgcngm@gmail.com>
Date:   Fri Feb 25 09:49:09 2022 +0000
    GlobalActionsDialog: Hint that there's more behind restart button

    If advanced restart is enabled, show a slightly different text to
    hint that there might be something more behind it. The string exists,
    so make use of it.

    Change-Id: I607fb48c24ea7a8c004ccca33af19ced1847e170

Author: SagarMakhar <sagarmakhar@gmail.com>
Date:   Thu Oct 21 11:10:09 2021 +0000
    Use flow layout for advanced power menu as well

    Change-Id: I62e46729278d57b8b21aa0c307f25d9ec053b216
Signed-off-by: default avatarSamarV-121 <samarvispute121@pm.me>

Change-Id: I4b35d10b0811eff0d8e9ab68b2aedbe52b4aa53f
parent f11c65c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment