Fix issue where overview panel was taking clicks because it was visible (issue 10732462)
Change-Id: Ie75f9237203d3c2bd147f72d1e860ddcaff53ed9
diff --git a/src/com/android/launcher3/AppsCustomizeTabHost.java b/src/com/android/launcher3/AppsCustomizeTabHost.java
index 89e74b2..f034183 100644
--- a/src/com/android/launcher3/AppsCustomizeTabHost.java
+++ b/src/com/android/launcher3/AppsCustomizeTabHost.java
@@ -439,6 +439,7 @@
ViewGroup parent = (ViewGroup) getParent();
if (parent == null) return;
+ View overviewPanel = ((Launcher) getContext()).getOverviewPanel();
final int count = parent.getChildCount();
if (!isChildrenDrawingOrderEnabled()) {
for (int i = 0; i < count; i++) {
@@ -446,7 +447,7 @@
if (child == this) {
break;
} else {
- if (child.getVisibility() == GONE) {
+ if (child.getVisibility() == GONE || child == overviewPanel) {
continue;
}
child.setVisibility(visibility);