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

Commit 81ba5ba9 authored by Daniel Sandler's avatar Daniel Sandler Committed by Automerger Merge Worker
Browse files

Merge "Block touches from descendants of an invisible panel." into sc-dev am: 5150b183

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13733252

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7adc88db11c1182042accdfd79b36bbdc45b4a44
parents d1b10269 5150b183
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@ import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.annotation.Nullable;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.SystemClock;
@@ -1243,7 +1242,10 @@ public abstract class PanelViewController {
                    mVelocityTracker.clear();
                    break;
            }
            return false;

            // Finally, if none of the above cases applies, ensure that touches do not get handled
            // by the contents of a panel that is not showing (a bit of a hack to avoid b/178277858)
            return (mView.getVisibility() != View.VISIBLE);
        }

        @Override