diff options
author | Raj Yengisetty <rajesh@cyngn.com> | 2014-06-03 14:30:38 -0700 |
---|---|---|
committer | Raj Yengisetty <rajesh@cyngn.com> | 2014-06-03 14:30:38 -0700 |
commit | e5315923d298bf3f623532dbf7a98bdbb3f404f0 (patch) | |
tree | 35313f90624c901b1da372642afea2af919103c4 | |
parent | daf5b675b81feb0dc7d114e865c2e055d8569690 (diff) | |
download | android_packages_apps_Trebuchet-e5315923d298bf3f623532dbf7a98bdbb3f404f0.tar.gz android_packages_apps_Trebuchet-e5315923d298bf3f623532dbf7a98bdbb3f404f0.tar.bz2 android_packages_apps_Trebuchet-e5315923d298bf3f623532dbf7a98bdbb3f404f0.zip |
Fix bug: Scroll Effect issues in Workspace
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.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/launcher3/PagedView.java b/src/com/android/launcher3/PagedView.java index f050799ae..dbec42fa8 100644 --- a/src/com/android/launcher3/PagedView.java +++ b/src/com/android/launcher3/PagedView.java @@ -3104,10 +3104,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); } @@ -3149,8 +3149,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); } } } |