Skip to content
Snippets Groups Projects
Commit 775d8dca authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android Git Automerger
Browse files

am de1d88eb: am 32f4ceb2: Dismiss more suggestions panel when suggestions strip is closed

* commit 'de1d88eb':
  Dismiss more suggestions panel when suggestions strip is closed
parents 78573f2e de1d88eb
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,7 @@ public class MoreKeysKeyboardView extends KeyboardView implements MoreKeysPanel ...@@ -159,7 +159,7 @@ public class MoreKeysKeyboardView extends KeyboardView implements MoreKeysPanel
@Override @Override
public boolean dismissMoreKeysPanel() { public boolean dismissMoreKeysPanel() {
if (mIsDismissing) return false; if (mIsDismissing || mController == null) return false;
mIsDismissing = true; mIsDismissing = true;
final boolean dismissed = mController.dismissMoreKeysPanel(); final boolean dismissed = mController.dismissMoreKeysPanel();
mIsDismissing = false; mIsDismissing = false;
......
...@@ -167,7 +167,7 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel { ...@@ -167,7 +167,7 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel {
@Override @Override
public boolean dismissMoreKeysPanel() { public boolean dismissMoreKeysPanel() {
if (mIsDismissing) return false; if (mIsDismissing || mController == null) return false;
mIsDismissing = true; mIsDismissing = true;
final boolean dismissed = mController.dismissMoreKeysPanel(); final boolean dismissed = mController.dismissMoreKeysPanel();
mIsDismissing = false; mIsDismissing = false;
......
...@@ -884,5 +884,6 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener, ...@@ -884,5 +884,6 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
super.onDetachedFromWindow(); super.onDetachedFromWindow();
mHandler.cancelAllMessages(); mHandler.cancelAllMessages();
hidePreview(); hidePreview();
dismissMoreSuggestions();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment