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

Commit 95c620c3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Let AllAppsEduView consume touch until animation is done and view is...

Merge "Let AllAppsEduView consume touch until animation is done and view is removed." into ub-launcher3-rvc-qpr-dev
parents 24ddf21c 58d74c3d
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ import com.android.quickstep.util.MultiValueUpdateListener;

/**
 * View used to educate the user on how to access All Apps when in No Nav Button navigation mode.
 * Consumes all touches until after the animation is completed and the view is removed.
 */
public class AllAppsEduView extends AbstractFloatingView {

@@ -113,9 +114,19 @@ public class AllAppsEduView extends AbstractFloatingView {
        return (type & TYPE_ALL_APPS_EDU) != 0;
    }

    @Override
    public boolean onBackPressed() {
        return true;
    }

    @Override
    public boolean canInterceptEventsInSystemGestureRegion() {
        return true;
    }

    @Override
    public boolean onControllerInterceptTouchEvent(MotionEvent ev) {
        return mAnimation != null && mAnimation.isRunning();
        return true;
    }

    private void playAnimation() {