mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix NPE
Change-Id: Ic438704af64e8ebcecba13dbc0f3e72b14ac6f4f
This commit is contained in:
parent
f6ecc28767
commit
00dd9e180a
@ -284,10 +284,8 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||
public static void logOnAutoSuggestion(String before, String after) {
|
||||
if (sLogEnabled) {
|
||||
String[] strings = new String[] {before, after};
|
||||
synchronized (sLastAutoSuggestBefore) {
|
||||
synchronized (LatinImeLogger.class) {
|
||||
sLastAutoSuggestBefore = before;
|
||||
}
|
||||
synchronized (sLastAutoSuggestAfter) {
|
||||
sLastAutoSuggestAfter = after;
|
||||
}
|
||||
sLatinImeLogger.sendLogToDropBox(ID_AUTOSUGGESTIONCANCELED, strings);
|
||||
|
Loading…
x
Reference in New Issue
Block a user