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

Commit a3fee34c authored by Matthew Ng's avatar Matthew Ng
Browse files

Pass all touch events to launcher over keyguard

Also changed the enabled state resolve flags to MATCH_SYSTEM_ONLY for
launcher to handle activities over lockscreen.

Bug: 125364936
Test: manual
Change-Id: Iabe7cd560296c908dc36c66b3cb50ac23b20a12c
parent a2c5d1a7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

package com.android.systemui.recents;

import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_UNAWARE;
import static android.content.pm.PackageManager.MATCH_SYSTEM_ONLY;
import static android.view.MotionEvent.ACTION_CANCEL;
import static android.view.MotionEvent.ACTION_DOWN;
import static android.view.MotionEvent.ACTION_UP;
@@ -592,7 +592,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis

    private void updateEnabledState() {
        mIsEnabled = mContext.getPackageManager().resolveServiceAsUser(mQuickStepIntent,
                MATCH_DIRECT_BOOT_UNAWARE,
                MATCH_SYSTEM_ONLY,
                ActivityManagerWrapper.getInstance().getCurrentUserId()) != null;
    }

+0 −9
Original line number Diff line number Diff line
@@ -192,10 +192,6 @@ public class QuickStepController implements GestureHelper {
     */
    @Override
    public boolean onInterceptTouchEvent(MotionEvent event) {
        if (mStatusBar.isKeyguardShowing()) {
            // Disallow any handling when the keyguard is showing
            return false;
        }
        return handleTouchEvent(event);
    }

@@ -205,11 +201,6 @@ public class QuickStepController implements GestureHelper {
     */
    @Override
    public boolean onTouchEvent(MotionEvent event) {
        if (mStatusBar.isKeyguardShowing()) {
            // Disallow any handling when the keyguard is showing
            return false;
        }

        // The same down event was just sent on intercept and therefore can be ignored here
        final boolean ignoreProxyDownEvent = event.getAction() == MotionEvent.ACTION_DOWN
                && mOverviewEventSender.getProxy() != null