summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DrawableStateProxyView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/DrawableStateProxyView.java')
-rw-r--r--src/com/android/launcher3/DrawableStateProxyView.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher3/DrawableStateProxyView.java b/src/com/android/launcher3/DrawableStateProxyView.java
index 196e2f2e1..0758de1f7 100644
--- a/src/com/android/launcher3/DrawableStateProxyView.java
+++ b/src/com/android/launcher3/DrawableStateProxyView.java
@@ -58,8 +58,10 @@ public class DrawableStateProxyView extends LinearLayout {
View parent = (View) getParent();
mView = parent.findViewById(mViewId);
}
- mView.setPressed(isPressed());
- mView.setHovered(isHovered());
+ if (mView != null) {
+ mView.setPressed(isPressed());
+ mView.setHovered(isHovered());
+ }
}
@Override