aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/compat/SettingsSecureCompatUtils.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-01-06 11:10:27 +0900
committerKen Wakasa <kwakasa@google.com>2013-01-07 12:13:42 +0900
commitb6ca354431367b625daf9fff5fbe4b1f5ef996ab (patch)
tree1358c683e123161cc04bc6ad83eb75c763ec53b3 /java/src/com/android/inputmethod/compat/SettingsSecureCompatUtils.java
parentf677681330143e3e50871222d33ade594e6348ce (diff)
downloadlatinime-b6ca354431367b625daf9fff5fbe4b1f5ef996ab.tar.gz
latinime-b6ca354431367b625daf9fff5fbe4b1f5ef996ab.tar.xz
latinime-b6ca354431367b625daf9fff5fbe4b1f5ef996ab.zip
Small code cleanups
Multi-project commit with I249d5fbe Change-Id: Ia28c4e970992aa1299a30e604eaa5d096655c3a5
Diffstat (limited to 'java/src/com/android/inputmethod/compat/SettingsSecureCompatUtils.java')
-rw-r--r--java/src/com/android/inputmethod/compat/SettingsSecureCompatUtils.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/compat/SettingsSecureCompatUtils.java b/java/src/com/android/inputmethod/compat/SettingsSecureCompatUtils.java
index db5abd0fe..cfaf7ec77 100644
--- a/java/src/com/android/inputmethod/compat/SettingsSecureCompatUtils.java
+++ b/java/src/com/android/inputmethod/compat/SettingsSecureCompatUtils.java
@@ -19,6 +19,8 @@ package com.android.inputmethod.compat;
import java.lang.reflect.Field;
public final class SettingsSecureCompatUtils {
+ // Note that Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD has been introduced
+ // in API level 15 (Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1).
private static final Field FIELD_ACCESSIBILITY_SPEAK_PASSWORD = CompatUtils.getField(
android.provider.Settings.Secure.class, "ACCESSIBILITY_SPEAK_PASSWORD");
@@ -30,5 +32,5 @@ public final class SettingsSecureCompatUtils {
* Whether to speak passwords while in accessibility mode.
*/
public static final String ACCESSIBILITY_SPEAK_PASSWORD = (String) CompatUtils.getFieldValue(
- null, null, FIELD_ACCESSIBILITY_SPEAK_PASSWORD);
+ null /* receiver */, null /* defaultValue */, FIELD_ACCESSIBILITY_SPEAK_PASSWORD);
}