Merge "Not to make a thread at changing view from keyboard to voice"
This commit is contained in:
commit
290b4a8ff9
1 changed files with 14 additions and 19 deletions
|
@ -1473,26 +1473,21 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
}
|
}
|
||||||
|
|
||||||
public void switchToKeyboardView() {
|
public void switchToKeyboardView() {
|
||||||
mHandler.post(new Runnable() {
|
if (DEBUG) {
|
||||||
@Override
|
Log.d(TAG, "Switch to keyboard view.");
|
||||||
public void run() {
|
}
|
||||||
if (DEBUG) {
|
View v = mKeyboardSwitcher.getInputView();
|
||||||
Log.d(TAG, "Switch to keyboard view.");
|
if (v != null) {
|
||||||
}
|
// Confirms that the keyboard view doesn't have parent view.
|
||||||
View v = mKeyboardSwitcher.getInputView();
|
ViewParent p = v.getParent();
|
||||||
if (v != null) {
|
if (p != null && p instanceof ViewGroup) {
|
||||||
// Confirms that the keyboard view doesn't have parent view.
|
((ViewGroup) p).removeView(v);
|
||||||
ViewParent p = v.getParent();
|
|
||||||
if (p != null && p instanceof ViewGroup) {
|
|
||||||
((ViewGroup) p).removeView(v);
|
|
||||||
}
|
|
||||||
setInputView(v);
|
|
||||||
}
|
|
||||||
setCandidatesViewShown(isCandidateStripVisible());
|
|
||||||
updateInputViewShown();
|
|
||||||
mHandler.postUpdateSuggestions();
|
|
||||||
}
|
}
|
||||||
});
|
setInputView(v);
|
||||||
|
}
|
||||||
|
setCandidatesViewShown(isCandidateStripVisible());
|
||||||
|
updateInputViewShown();
|
||||||
|
mHandler.postUpdateSuggestions();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearSuggestions() {
|
public void clearSuggestions() {
|
||||||
|
|
Loading…
Reference in a new issue