Initialize ResearchLogger later to avoid NPE

Change-Id: I1b817dfbdc319ac9bbf2f08e094a007849ce767f
main
Kurt Partridge 2013-01-24 11:12:58 -08:00
parent edb5c4638b
commit 63bc279596
1 changed files with 3 additions and 3 deletions

View File

@ -413,9 +413,6 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
public void onCreate() { public void onCreate() {
Settings.init(this); Settings.init(this);
LatinImeLogger.init(this); LatinImeLogger.init(this);
if (ProductionFlag.IS_EXPERIMENTAL) {
ResearchLogger.getInstance().init(this);
}
RichInputMethodManager.init(this); RichInputMethodManager.init(this);
mRichImm = RichInputMethodManager.getInstance(); mRichImm = RichInputMethodManager.getInstance();
SubtypeSwitcher.init(this); SubtypeSwitcher.init(this);
@ -431,6 +428,9 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
loadSettings(); loadSettings();
initSuggest(); initSuggest();
if (ProductionFlag.IS_EXPERIMENTAL) {
ResearchLogger.getInstance().init(this);
}
mDisplayOrientation = getResources().getConfiguration().orientation; mDisplayOrientation = getResources().getConfiguration().orientation;
// Register to receive ringer mode change and network state change. // Register to receive ringer mode change and network state change.