mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
* commit 'de1d88eb4199160899d227f2c679215e16410c42': Dismiss more suggestions panel when suggestions strip is closed
This commit is contained in:
commit
775d8dcaeb
@ -159,7 +159,7 @@ public class MoreKeysKeyboardView extends KeyboardView implements MoreKeysPanel
|
||||
|
||||
@Override
|
||||
public boolean dismissMoreKeysPanel() {
|
||||
if (mIsDismissing) return false;
|
||||
if (mIsDismissing || mController == null) return false;
|
||||
mIsDismissing = true;
|
||||
final boolean dismissed = mController.dismissMoreKeysPanel();
|
||||
mIsDismissing = false;
|
||||
|
@ -167,7 +167,7 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel {
|
||||
|
||||
@Override
|
||||
public boolean dismissMoreKeysPanel() {
|
||||
if (mIsDismissing) return false;
|
||||
if (mIsDismissing || mController == null) return false;
|
||||
mIsDismissing = true;
|
||||
final boolean dismissed = mController.dismissMoreKeysPanel();
|
||||
mIsDismissing = false;
|
||||
|
@ -884,5 +884,6 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
|
||||
super.onDetachedFromWindow();
|
||||
mHandler.cancelAllMessages();
|
||||
hidePreview();
|
||||
dismissMoreSuggestions();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user