mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 32f4ceb2
: Dismiss more suggestions panel when suggestions strip is closed
* commit '32f4ceb2434b6f204cf8152b406d0f9a642feb73': Dismiss more suggestions panel when suggestions strip is closed
This commit is contained in:
commit
de1d88eb41
@ -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