mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am de1d88eb: am 32f4ceb2: Dismiss more suggestions panel when suggestions strip is closed
* 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
|
@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 {
|
|||||||
|
|
||||||
@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,
|
|||||||
super.onDetachedFromWindow();
|
super.onDetachedFromWindow();
|
||||||
mHandler.cancelAllMessages();
|
mHandler.cancelAllMessages();
|
||||||
hidePreview();
|
hidePreview();
|
||||||
|
dismissMoreSuggestions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user