diff options
-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); } } } |