summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2014-06-03 14:30:38 -0700
committerDanesh M <daneshm90@gmail.com>2014-06-04 23:51:13 +0000
commit4b66843493c8a8cc2bf01ac45566b71b2393a5ec (patch)
tree8dd1f36359d2d085ddcc65fdfdb045fdb3ac7368
parent64ea17808490228224ad76835c1388a926912a03 (diff)
downloadandroid_packages_apps_Trebuchet-cm-11.0-XNPH22R-bacon-03d77315ea.tar.gz
android_packages_apps_Trebuchet-cm-11.0-XNPH22R-bacon-03d77315ea.tar.bz2
android_packages_apps_Trebuchet-cm-11.0-XNPH22R-bacon-03d77315ea.zip
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 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);
}
}
}