am 0807c897
: Make SettingsValues non-final to testability
* commit '0807c897f40f22ee4df5d425a8c7f7c207000718': Make SettingsValues non-final to testability
This commit is contained in:
commit
b2de1eaa29
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
* 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();
|
||||
// "floatMaxValue" and "floatNegativeInfinity" are special marker strings for
|
||||
// Float.NEGATIVE_INFINITE and Float.MAX_VALUE. Currently used for auto-correction settings.
|
||||
|
@ -186,6 +187,10 @@ public final class SettingsValues {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean isMetricsLoggingEnabled() {
|
||||
return mEnableMetricsLogging;
|
||||
}
|
||||
|
||||
public boolean isApplicationSpecifiedCompletionsOn() {
|
||||
return mInputAttributes.mApplicationSpecifiedCompletionOn;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue