summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/keyboard/FocusIndicatorHelper.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-09-21 15:57:55 -0700
committerSunny Goyal <sunnygoyal@google.com>2016-09-23 15:57:08 -0700
commit66b24572e41a13ba5b85b37cf7be64804299c8f6 (patch)
treeeb28b6c264a0a589a911dbcf5540621b111953d9 /src/com/android/launcher3/keyboard/FocusIndicatorHelper.java
parentf09bfab404fa0118a6c3cb6a317edaab3907eb0b (diff)
downloadandroid_packages_apps_Trebuchet-66b24572e41a13ba5b85b37cf7be64804299c8f6.tar.gz
android_packages_apps_Trebuchet-66b24572e41a13ba5b85b37cf7be64804299c8f6.tar.bz2
android_packages_apps_Trebuchet-66b24572e41a13ba5b85b37cf7be64804299c8f6.zip
Exposing custom actions using keyboard shortcut
Keyboard shortcuts: ctrl+A => Open all apps ctrl+S => shows deep shortcuts ctrl+O => shows custom actions popup This also removes the direct delete/uninstall key shortcuts, making actidental icon removal less likely Bug: 24065447 Change-Id: Iae63370c0f33620628567cffd4df024064d4d02e
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) {