summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2014-06-03 21:30:38 (GMT)
committerDanesh M <daneshm90@gmail.com>2014-06-04 23:51:13 (GMT)
commit4b66843493c8a8cc2bf01ac45566b71b2393a5ec (patch)
tree8dd1f36359d2d085ddcc65fdfdb045fdb3ac7368
parent64ea17808490228224ad76835c1388a926912a03 (diff)
downloadandroid_packages_apps_Trebuchet-4b66843493c8a8cc2bf01ac45566b71b2393a5ec.zip
android_packages_apps_Trebuchet-4b66843493c8a8cc2bf01ac45566b71b2393a5ec.tar.gz
android_packages_apps_Trebuchet-4b66843493c8a8cc2bf01ac45566b71b2393a5ec.tar.bz2
Repro: - Set HomeScreen Scroll Effect to Flip or Stack - Create at least 3 pages in HomeScreen - Switch rapidly back and forth between pages - Observe certain pages will be transparent Change-Id: I405a113fb947b193706d10921c2cf6ee7bb82b4f
-rw-r--r--src/com/android/launcher3/PagedView.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/launcher3/PagedView.java b/src/com/android/launcher3/PagedView.java
index 37cd1e9..6463e20 100644
--- a/src/com/android/launcher3/PagedView.java
+++ b/src/com/android/launcher3/PagedView.java
@@ -3109,10 +3109,10 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
v.setAlpha(alpha);
}
- // If the view has 0 alpha, we set it to be invisible so as to prevent
+ // If the view has 0 alpha, we move it off screen so as to prevent
// it from accepting touches
if (alpha == 0) {
- v.setVisibility(INVISIBLE);
+ v.setTranslationX(v.getMeasuredWidth() * -10f);
} else if (v.getVisibility() != VISIBLE) {
v.setVisibility(VISIBLE);
}
@@ -3154,8 +3154,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
v.setVisibility(VISIBLE);
}
} else {
- v.setTranslationX(0f);
- v.setVisibility(INVISIBLE);
+ v.setTranslationX(v.getMeasuredWidth() * -10f);
}
}
}