mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Not to make a thread at changing view from keyboard to voice"
This commit is contained in:
commit
290b4a8ff9
@ -1473,26 +1473,21 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||
}
|
||||
|
||||
public void switchToKeyboardView() {
|
||||
mHandler.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "Switch to keyboard view.");
|
||||
}
|
||||
View v = mKeyboardSwitcher.getInputView();
|
||||
if (v != null) {
|
||||
// Confirms that the keyboard view doesn't have parent view.
|
||||
ViewParent p = v.getParent();
|
||||
if (p != null && p instanceof ViewGroup) {
|
||||
((ViewGroup) p).removeView(v);
|
||||
}
|
||||
setInputView(v);
|
||||
}
|
||||
setCandidatesViewShown(isCandidateStripVisible());
|
||||
updateInputViewShown();
|
||||
mHandler.postUpdateSuggestions();
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "Switch to keyboard view.");
|
||||
}
|
||||
View v = mKeyboardSwitcher.getInputView();
|
||||
if (v != null) {
|
||||
// Confirms that the keyboard view doesn't have parent view.
|
||||
ViewParent p = v.getParent();
|
||||
if (p != null && p instanceof ViewGroup) {
|
||||
((ViewGroup) p).removeView(v);
|
||||
}
|
||||
});
|
||||
setInputView(v);
|
||||
}
|
||||
setCandidatesViewShown(isCandidateStripVisible());
|
||||
updateInputViewShown();
|
||||
mHandler.postUpdateSuggestions();
|
||||
}
|
||||
|
||||
public void clearSuggestions() {
|
||||
|
Loading…
Reference in New Issue
Block a user