зеркало из https://github.com/mozilla/gecko-dev.git
Bug 644613 - NPE in setComposingText when using VKB. r=mwu
This commit is contained in:
Родитель
122b112980
Коммит
497e7711c2
|
@ -157,7 +157,7 @@ public class GeckoInputConnection
|
|||
GeckoAppShell.sendEventToGecko(
|
||||
new GeckoEvent(GeckoEvent.IME_COMPOSITION_END, 0, 0));
|
||||
mComposing = false;
|
||||
mComposingText = null;
|
||||
mComposingText = "";
|
||||
|
||||
// Make sure caret stays at the same position
|
||||
GeckoAppShell.sendEventToGecko(
|
||||
|
@ -532,7 +532,7 @@ public class GeckoInputConnection
|
|||
|
||||
public void reset() {
|
||||
mComposing = false;
|
||||
mComposingText = null;
|
||||
mComposingText = "";
|
||||
mUpdateRequest = null;
|
||||
}
|
||||
|
||||
|
@ -578,7 +578,7 @@ public class GeckoInputConnection
|
|||
// Is a composition active?
|
||||
boolean mComposing;
|
||||
// Composition text when a composition is active
|
||||
String mComposingText;
|
||||
String mComposingText = "";
|
||||
// Start index of the composition within the text body
|
||||
int mCompositionStart;
|
||||
/* During a composition, we should not alter the real selection,
|
||||
|
|
Загрузка…
Ссылка в новой задаче