Merge "Fix KeyboardShortcuts show"

This commit is contained in:
Peeyush Agarwal
2017-01-09 22:05:20 +00:00
committed by Android (Google) Code Review

View File

@@ -381,7 +381,12 @@ public final class KeyboardShortcuts {
if (appShortcuts != null) {
result.add(appShortcuts);
}
showKeyboardShortcutsDialog(result);
synchronized (sLock) {
// showKeyboardShortcutsDialog only if it has not been dismissed already
if (sInstance != null) {
showKeyboardShortcutsDialog(result);
}
}
}
}, deviceId);
}