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

Commit e1a7cef6 authored by Altaf-Mahdi's avatar Altaf-Mahdi Committed by Steve Kondik
Browse files

SystemUI: unbreak accesibility longpress Overview to unpin

add a check to see if were in a locked app so not to hijack recents

Change-Id: I6313903ac3c8f404c2e361446bef505eceba9117
parent 6bd382e2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4590,7 +4590,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
                    // If we aren't pressing recents right now then they presses
                    // won't be together, so send the standard long-press action.
                    sendBackLongPress = true;
                } else if ((v.getId() == R.id.recent_apps)) {
                } else if (v.getId() == R.id.recent_apps && !activityManager.isInLockTaskMode()) {
                    hijackRecentsLongPress = true;
                }
                mLastLockToAppLongPress = time;
@@ -4598,7 +4598,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
                // If this is back still need to handle sending the long-press event.
                if (v.getId() == R.id.back) {
                    sendBackLongPress = true;
                } else if (v.getId() == R.id.recent_apps) {
                } else if (v.getId() == R.id.recent_apps && !activityManager.isInLockTaskMode()) {
                    hijackRecentsLongPress = true;
                } else if (isAccessiblityEnabled && activityManager.isInLockTaskMode()) {
                    // When in accessibility mode a long press that is recents (not back)