Skip to content
Snippets Groups Projects
Commit 0807c897 authored by Jatin Matani's avatar Jatin Matani
Browse files

Make SettingsValues non-final to testability

Add getter for enableMetricsLogging boolean.

Bug:16522256
Change-Id: Ie9a38efc7861b3d4207562d2bf0344c5c2ae957a
parent 23b364ef
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,8 @@ import java.util.Locale; ...@@ -40,7 +40,8 @@ import java.util.Locale;
* When you call the constructor of this class, you may want to change the current system locale by * When you call the constructor of this class, you may want to change the current system locale by
* using {@link com.android.inputmethod.latin.utils.RunInLocale}. * using {@link com.android.inputmethod.latin.utils.RunInLocale}.
*/ */
public final class SettingsValues { // Non-final for testing via mock library.
public class SettingsValues {
private static final String TAG = SettingsValues.class.getSimpleName(); private static final String TAG = SettingsValues.class.getSimpleName();
// "floatMaxValue" and "floatNegativeInfinity" are special marker strings for // "floatMaxValue" and "floatNegativeInfinity" are special marker strings for
// Float.NEGATIVE_INFINITE and Float.MAX_VALUE. Currently used for auto-correction settings. // Float.NEGATIVE_INFINITE and Float.MAX_VALUE. Currently used for auto-correction settings.
...@@ -186,6 +187,10 @@ public final class SettingsValues { ...@@ -186,6 +187,10 @@ public final class SettingsValues {
} }
} }
public boolean isMetricsLoggingEnabled() {
return mEnableMetricsLogging;
}
public boolean isApplicationSpecifiedCompletionsOn() { public boolean isApplicationSpecifiedCompletionsOn() {
return mInputAttributes.mApplicationSpecifiedCompletionOn; return mInputAttributes.mApplicationSpecifiedCompletionOn;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment