Add StatsUtils#onLoadSettings for when settings are changed
Non-blocking call in nature. Bug:17013677 Change-Id: Iff737422bbacbf22c9b0ff6eaf1c1f75e6bf23c3main
parent
569f6f1c9e
commit
cc7e44e34c
|
@ -79,4 +79,7 @@ public final class StatsUtils {
|
|||
public static void onWordCommitSuggestionPickedManually(
|
||||
final String commitWord, final boolean isBatchMode) {
|
||||
}
|
||||
|
||||
public static void onLoadSettings(SettingsValues settingsValues) {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@ import com.android.inputmethod.latin.R;
|
|||
import com.android.inputmethod.latin.utils.AdditionalSubtypeUtils;
|
||||
import com.android.inputmethod.latin.utils.ResourceUtils;
|
||||
import com.android.inputmethod.latin.utils.RunInLocale;
|
||||
import com.android.inputmethod.latin.utils.StatsUtils;
|
||||
import com.android.inputmethod.latin.utils.StringUtils;
|
||||
|
||||
import java.util.Collections;
|
||||
|
@ -169,6 +170,7 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
|
|||
return;
|
||||
}
|
||||
loadSettings(mContext, mSettingsValues.mLocale, mSettingsValues.mInputAttributes);
|
||||
StatsUtils.onLoadSettings(mSettingsValues);
|
||||
} finally {
|
||||
mSettingsValuesLock.unlock();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue