diff options
Diffstat (limited to 'src/com/android/launcher2/ApplicationInfoDropTarget.java')
-rw-r--r-- | src/com/android/launcher2/ApplicationInfoDropTarget.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/com/android/launcher2/ApplicationInfoDropTarget.java b/src/com/android/launcher2/ApplicationInfoDropTarget.java index 78a9d2dc..ce359d44 100644 --- a/src/com/android/launcher2/ApplicationInfoDropTarget.java +++ b/src/com/android/launcher2/ApplicationInfoDropTarget.java @@ -162,10 +162,13 @@ public class ApplicationInfoDropTarget extends IconDropTarget { // Fade in the overlapping views if (mOverlappingViews != null) { for (View view : mOverlappingViews) { - ObjectAnimator oa = ObjectAnimator.ofFloat(view, "alpha", 1.0f); - oa.setDuration(sFadeInAnimationDuration); - mFadeAnimator.play(oa); - view.setVisibility(VISIBLE); + // Check whether the views are enabled first, before trying to fade them in + if (view.isEnabled()) { + ObjectAnimator oa = ObjectAnimator.ofFloat(view, "alpha", 1.0f); + oa.setDuration(sFadeInAnimationDuration); + mFadeAnimator.play(oa); + view.setVisibility(VISIBLE); + } } } mFadeAnimator.start(); |