Merge "Add StatsUtils#onLoadSettings for when settings are changed"

main
Jatin Matani 2014-10-01 00:41:31 +00:00 committed by Android (Google) Code Review
commit 0187db39b5
2 changed files with 5 additions and 0 deletions

View File

@ -79,4 +79,7 @@ public final class StatsUtils {
public static void onWordCommitSuggestionPickedManually(
final String commitWord, final boolean isBatchMode) {
}
public static void onLoadSettings(SettingsValues settingsValues) {
}
}

View File

@ -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();
}