SUW: fix setting USER_SETUP_COMPLETE
This setting needs to be set per user.
Change-Id: I5a312fab472d4d5f5bbe8424ddff6f34148ce69f
diff --git a/src/org/lineageos/setupwizard/util/SetupWizardUtils.java b/src/org/lineageos/setupwizard/util/SetupWizardUtils.java
index 4f11281..f8762ba 100644
--- a/src/org/lineageos/setupwizard/util/SetupWizardUtils.java
+++ b/src/org/lineageos/setupwizard/util/SetupWizardUtils.java
@@ -212,8 +212,8 @@
ContentResolver contentResolver = context.getContentResolver();
Settings.Global.putInt(contentResolver,
Settings.Global.DEVICE_PROVISIONED, 1);
- Settings.Secure.putInt(contentResolver,
- Settings.Secure.USER_SETUP_COMPLETE, 1);
+ Settings.Secure.putIntForUser(contentResolver,
+ Settings.Secure.USER_SETUP_COMPLETE, 1, contentResolver.getUserId());
if (hasLeanback(context)) {
Settings.Secure.putInt(contentResolver,
Settings.Secure.TV_USER_SETUP_COMPLETE, 1);