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

Commit 241b1399 authored by jt1134's avatar jt1134
Browse files

bugfix: allow recent apps dialog to work with menu long-press

With the original patch, using the recent app dialog from a
menu button long-press would cause the dialog to be preloaded
and then dismissed on key-up. Check long-press behavior settings
as well as short-press to prevent the dismissal.

Change-Id: Idf1d27aa725547e0ddc44905e27da6c1b4540fab
parent 018d0702
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2290,7 +2290,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                    }
                }
            } else {
                if (mRecentAppsPreloaded && mPressOnMenuBehavior != KEY_ACTION_APP_SWITCH) {
                if (mRecentAppsPreloaded && mPressOnMenuBehavior != KEY_ACTION_APP_SWITCH &&
                        mLongPressOnMenuBehavior != KEY_ACTION_APP_SWITCH) {
                    cancelPreloadRecentApps();
                }
                if (mMenuDoCustomAction) {