Bug 644613 - NPE in setComposingText when using VKB. r=mwu

This commit is contained in:
Makoto Kato 2011-04-11 05:05:00 -07:00
Родитель 122b112980
Коммит 497e7711c2
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -157,7 +157,7 @@ public class GeckoInputConnection
GeckoAppShell.sendEventToGecko( GeckoAppShell.sendEventToGecko(
new GeckoEvent(GeckoEvent.IME_COMPOSITION_END, 0, 0)); new GeckoEvent(GeckoEvent.IME_COMPOSITION_END, 0, 0));
mComposing = false; mComposing = false;
mComposingText = null; mComposingText = "";
// Make sure caret stays at the same position // Make sure caret stays at the same position
GeckoAppShell.sendEventToGecko( GeckoAppShell.sendEventToGecko(
@ -532,7 +532,7 @@ public class GeckoInputConnection
public void reset() { public void reset() {
mComposing = false; mComposing = false;
mComposingText = null; mComposingText = "";
mUpdateRequest = null; mUpdateRequest = null;
} }
@ -578,7 +578,7 @@ public class GeckoInputConnection
// Is a composition active? // Is a composition active?
boolean mComposing; boolean mComposing;
// Composition text when a composition is active // Composition text when a composition is active
String mComposingText; String mComposingText = "";
// Start index of the composition within the text body // Start index of the composition within the text body
int mCompositionStart; int mCompositionStart;
/* During a composition, we should not alter the real selection, /* During a composition, we should not alter the real selection,