summaryrefslogtreecommitdiff
path: root/library/main/src/com/android/setupwizardlib/util
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2016-11-15 15:38:25 -0800
committerMaurice Lam <yukl@google.com>2016-11-17 22:45:56 +0000
commite0275b558e533bd0665b87e2e78267801c2472cd (patch)
tree589ffe2ba79ef4b67e38d30cd5c8ee9f6585e890 /library/main/src/com/android/setupwizardlib/util
parent9de129f7b760d737f5134cdb632fed49c227b013 (diff)
downloadsetupwizard-e0275b558e533bd0665b87e2e78267801c2472cd.tar.gz
[SuwLib] Fix SDK version check for isUserSetupComplete
The system setting was introduced in JB MR1. Test: ./gradlew connectedAndroidTest Change-Id: I70b72981cf71eb39064048a80f6669c63b626070
Diffstat (limited to 'library/main/src/com/android/setupwizardlib/util')
-rw-r--r--library/main/src/com/android/setupwizardlib/util/WizardManagerHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/main/src/com/android/setupwizardlib/util/WizardManagerHelper.java b/library/main/src/com/android/setupwizardlib/util/WizardManagerHelper.java
index 10172ce..2b67901 100644
--- a/library/main/src/com/android/setupwizardlib/util/WizardManagerHelper.java
+++ b/library/main/src/com/android/setupwizardlib/util/WizardManagerHelper.java
@@ -150,7 +150,7 @@ public class WizardManagerHelper {
* @see #isDeviceProvisioned(android.content.Context)
*/
public static boolean isUserSetupComplete(Context context) {
- if (VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH) {
+ if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) {
return Settings.Secure.getInt(context.getContentResolver(),
SETTINGS_SECURE_USER_SETUP_COMPLETE, 0) == 1;
} else {