diff options
author | Raj Yengisetty <rajesh@cyngn.com> | 2014-06-03 14:30:38 -0700 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2014-06-04 23:51:13 +0000 |
commit | 4b66843493c8a8cc2bf01ac45566b71b2393a5ec (patch) | |
tree | 8dd1f36359d2d085ddcc65fdfdb045fdb3ac7368 /src | |
parent | 64ea17808490228224ad76835c1388a926912a03 (diff) | |
download | android_packages_apps_Trebuchet-4b66843493c8a8cc2bf01ac45566b71b2393a5ec.tar.gz android_packages_apps_Trebuchet-4b66843493c8a8cc2bf01ac45566b71b2393a5ec.tar.bz2 android_packages_apps_Trebuchet-4b66843493c8a8cc2bf01ac45566b71b2393a5ec.zip |
Fix bug: Scroll Effect issues in Workspacecm-11.0-XNPH25R-bacon-d22b777afacm-11.0-XNPH22R-bacon-03d77315ea
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
Diffstat (limited to 'src')
-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 37cd1e9ca..6463e203d 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); } } } |