Merge "Ignore hidden views when computing exclusion rects" into qt-qpr1-dev am: b5b3a58173
am: 6ff8b5d1fe
Change-Id: I30cfe658327833232871dcd0a3bb895d5453026f
This commit is contained in:
@@ -44,7 +44,7 @@ class GestureExclusionTracker {
|
||||
while (i.hasNext()) {
|
||||
final GestureExclusionViewInfo info = i.next();
|
||||
final View v = info.getView();
|
||||
if (v == null || !v.isAttachedToWindow()) {
|
||||
if (v == null || !v.isAttachedToWindow() || !v.isShown()) {
|
||||
mGestureExclusionViewsChanged = true;
|
||||
i.remove();
|
||||
continue;
|
||||
@@ -122,7 +122,8 @@ class GestureExclusionTracker {
|
||||
|
||||
public int update() {
|
||||
final View excludedView = getView();
|
||||
if (excludedView == null || !excludedView.isAttachedToWindow()) return GONE;
|
||||
if (excludedView == null || !excludedView.isAttachedToWindow()
|
||||
|| !excludedView.isShown()) return GONE;
|
||||
final List<Rect> localRects = excludedView.getSystemGestureExclusionRects();
|
||||
final List<Rect> newRects = new ArrayList<>(localRects.size());
|
||||
for (Rect src : localRects) {
|
||||
|
||||
@@ -14403,6 +14403,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
}
|
||||
|
||||
notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible);
|
||||
updateSystemGestureExclusionRects();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user