Flush before re-throwing exception in logOnException

Change-Id: I061738c5b1a1509015344c2c27848bac1e29d833
This commit is contained in:
satok 2010-06-03 11:48:33 +09:00
parent dd58fe92d1
commit 219d9d52e5

View file

@ -510,6 +510,7 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang
synchronized (LatinImeLogger.class) { synchronized (LatinImeLogger.class) {
sLastAutoSuggestBefore = ""; sLastAutoSuggestBefore = "";
sLastAutoSuggestAfter = ""; sLastAutoSuggestAfter = "";
sLastAutoSuggestSeparator = "";
} }
} }
} }
@ -545,6 +546,7 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang
if (SUPPRESS_EXCEPTION) { if (SUPPRESS_EXCEPTION) {
sLatinImeLogger.commitInternalAndStopSelf(); sLatinImeLogger.commitInternalAndStopSelf();
} else { } else {
sLatinImeLogger.commitInternal();
throw e; throw e;
} }
} }