Initialize ResearchLogger later to avoid NPE
Change-Id: I1b817dfbdc319ac9bbf2f08e094a007849ce767fmain
parent
edb5c4638b
commit
63bc279596
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue