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

Commit 802d3e7d authored by Adnan's avatar Adnan Committed by Adnan Begovic
Browse files

HeadsUp: Fix resetHeadsUpDecayTimer.



    - If user has forced immersive mode through expanded desktop,
    we shouldn't hide the heads up notification quickly.

Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
Signed-off-by: default avatarAdnan Begovic <adnan@cyngn.com>

Change-Id: I6ac015ce5c28216cafd3ce96f8d1993495b26897
parent cb85a908
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ public abstract class BaseStatusBar extends SystemUI implements
    private ArrayList<String> mDndList;
    private ArrayList<String> mBlacklist;

    private int mExpandedDesktopStyle = 0;
    protected int mExpandedDesktopStyle = 0;

    public IStatusBarService getStatusBarService() {
        return mBarService;
+3 −1
Original line number Diff line number Diff line
@@ -1304,7 +1304,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,

            final boolean sbVisible = (mSystemUiVisibility & View.SYSTEM_UI_FLAG_FULLSCREEN) == 0
                    || (mStatusBarMode & View.STATUS_BAR_TRANSIENT) != 0;
            if (!sbVisible) {
            final boolean userForcedExpandedDesktop =
                    mExpandedDesktopStyle == 1 || mExpandedDesktopStyle == 2;
            if (!sbVisible && !userForcedExpandedDesktop) {
                mHandler.removeMessages(MSG_HIDE_HEADS_UP);
                mHandler.sendEmptyMessageDelayed(MSG_HIDE_HEADS_UP, 700);
            } else {