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

Commit 53d33241 authored by LuK1337's avatar LuK1337
Browse files

SystemUI: Handle profiles with disabled lockscreen



Pulled from:

Author: Michael Bestas <mkbestas@lineageos.org>
Date:   Sun Jan 21 00:22:10 2018 +0200

    frameworks: Power menu customizations

     * Forward-ported to Oreo, based on the following changes from previous branches.
       Reduced footprint in the frameworks, after moving some stuff to our SDK.
     * Includes:
         - Updated airplane mode and user switcher style to match new power menu
         - Fixed airplane mode switch issues
         - New advanced restart style to match new power menu style,
           based on Max Weninger <max.weninger@gmail.com> initial implementation

       The possible actions are:
         - Power off
         - Restart (with advanced options)
         - Screenshot
         - User switcher
         - Airplane mode
         - Bug report

    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.

        commit 588464bea40b92b04c4aeee35c47f7becceeed56
        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>

        commit 3e7b92551bbf818ace41cd9b9532473ed7d18f2f
        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

        commit cf42ed3993d5d05c9b2591883fefb6338fbcdd40
        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

        commit 08aa6fd643e0359114b86f50053921dd2d86fc50
        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

    Change-Id: Id561b0111e8cc7a80c345668d79a363ec0ec389c

Author: LuK1337 <priv.luk@gmail.com>
Date:   Sun Sep 22 02:09:05 2019 +0200

    SystemUI: Don't dismiss keyguard if user key isn't unlocked

    * This change avoids skipping keyguard before
      userdata is decrypted on FBE devices if user
      made their profile so that it keeps their
      device unlocked.

    Change-Id: If470d07e8d0188535a9e6a77f96f0a66ff4e434d

Change-Id: I44e2a16931928a3a38a8d9ad214860386a682139
parent d9eaddbe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment