Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ea19d34 authored by Peeyush Agarwal's avatar Peeyush Agarwal Committed by Android (Google) Code Review
Browse files

Merge "Fix KeyboardShortcuts show"

parents 3571b79c 64f0cae9
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -381,13 +381,8 @@ public final class KeyboardShortcuts {
                        if (appShortcuts != null) {
                            result.add(appShortcuts);
                        }
                        synchronized (sLock) {
                            // showKeyboardShortcutsDialog only if it has not been dismissed already
                            if (sInstance != null) {
                        showKeyboardShortcutsDialog(result);
                    }
                        }
                    }
                }, deviceId);
    }

@@ -585,8 +580,13 @@ public final class KeyboardShortcuts {
        mKeyboardShortcutsDialog.setCanceledOnTouchOutside(true);
        Window keyboardShortcutsWindow = mKeyboardShortcutsDialog.getWindow();
        keyboardShortcutsWindow.setType(TYPE_SYSTEM_DIALOG);
        synchronized (sLock) {
            // showKeyboardShortcutsDialog only if it has not been dismissed already
            if (sInstance != null) {
                mKeyboardShortcutsDialog.show();
            }
        }
    }

    private void populateKeyboardShortcuts(LinearLayout keyboardShortcutsLayout,
            List<KeyboardShortcutGroup> keyboardShortcutGroups) {