summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/keyboard/FocusIndicatorHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/keyboard/FocusIndicatorHelper.java')
-rw-r--r--src/com/android/launcher3/keyboard/FocusIndicatorHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/keyboard/FocusIndicatorHelper.java b/src/com/android/launcher3/keyboard/FocusIndicatorHelper.java
index 7672f5a79..b0d6b2dbf 100644
--- a/src/com/android/launcher3/keyboard/FocusIndicatorHelper.java
+++ b/src/com/android/launcher3/keyboard/FocusIndicatorHelper.java
@@ -143,7 +143,7 @@ public abstract class FocusIndicatorHelper implements
}
private Rect getDrawRect() {
- if (mCurrentView != null) {
+ if (mCurrentView != null && mCurrentView.isAttachedToWindow()) {
viewToRect(mCurrentView, sTempRect1);
if (mShift > 0 && mTargetView != null) {