Merge "Fixes a bug in shortcut key." into nyc-dev

This commit is contained in:
Muyuan Li
2016-04-14 20:50:38 +00:00
committed by Android (Google) Code Review

View File

@@ -3396,7 +3396,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
IShortcutService shortcutService = mShortcutKeyServices.get(shortcutCode); IShortcutService shortcutService = mShortcutKeyServices.get(shortcutCode);
if (shortcutService != null) { if (shortcutService != null) {
try { try {
shortcutService.notifyShortcutKeyPressed(shortcutCode); if (isUserSetupComplete()) {
shortcutService.notifyShortcutKeyPressed(shortcutCode);
}
} catch (RemoteException e) { } catch (RemoteException e) {
mShortcutKeyServices.delete(shortcutCode); mShortcutKeyServices.delete(shortcutCode);
} }