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

Commit 01de93de authored by Michael Jurka's avatar Michael Jurka
Browse files

Fix bug with preloading recent tasks

Don't send a "cancel preloading" event to recents
from PhoneWindowManager if we're not using
long-press on home to invoke recents (ie phones
with soft nav keys)
parent 32e7bd9f
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -1717,6 +1717,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                mHomePressed = false;
                mHomeLongPressed = false;
                if (!homeWasLongPressed) {
                    if (mLongPressOnHomeBehavior == LONG_PRESS_HOME_RECENT_SYSTEM_UI) {
                        try {
                            IStatusBarService statusbar = getStatusBarService();
                            if (statusbar != null) {
@@ -1727,6 +1728,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                            // re-acquire status bar service next time it is needed.
                            mStatusBarService = null;
                        }
                    }

                    mHomePressed = false;
                    if (!canceled) {