Flush before re-throwing exception in logOnException
Change-Id: I061738c5b1a1509015344c2c27848bac1e29d833main
parent
dd58fe92d1
commit
219d9d52e5
|
@ -510,6 +510,7 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang
|
|||
synchronized (LatinImeLogger.class) {
|
||||
sLastAutoSuggestBefore = "";
|
||||
sLastAutoSuggestAfter = "";
|
||||
sLastAutoSuggestSeparator = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -545,6 +546,7 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang
|
|||
if (SUPPRESS_EXCEPTION) {
|
||||
sLatinImeLogger.commitInternalAndStopSelf();
|
||||
} else {
|
||||
sLatinImeLogger.commitInternal();
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue