Dismiss more keys panel when hiding window
Bug: 15727301 Change-Id: Id7002ecb7f4eea7be3505f6f0235074264418221
This commit is contained in:
parent
f49e975740
commit
b80fb09ff8
1 changed files with 5 additions and 0 deletions
|
@ -666,6 +666,10 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
|
|||
@Override
|
||||
public void onDismissMoreKeysPanel() {
|
||||
dimEntireKeyboard(false /* dimmed */);
|
||||
dismissMoreKeysPanel();
|
||||
}
|
||||
|
||||
private void dismissMoreKeysPanel() {
|
||||
if (isShowingMoreKeysPanel()) {
|
||||
mMoreKeysPanel.removeFromParent();
|
||||
mMoreKeysPanel = null;
|
||||
|
@ -731,6 +735,7 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
|
|||
}
|
||||
|
||||
public void onHideWindow() {
|
||||
dismissMoreKeysPanel();
|
||||
final MainKeyboardAccessibilityDelegate accessibilityDelegate = mAccessibilityDelegate;
|
||||
if (accessibilityDelegate != null) {
|
||||
accessibilityDelegate.onHideWindow();
|
||||
|
|
Loading…
Reference in a new issue