SUW: fix setting USER_SETUP_COMPLETE

This setting needs to be set per user.

Change-Id: I5a312fab472d4d5f5bbe8424ddff6f34148ce69f
This commit is contained in:
Timi Rautamäki
2022-04-13 10:31:56 +00:00
parent 36fc88f9d2
commit 7ffdf8d12c

View File

@@ -212,8 +212,8 @@ public class SetupWizardUtils {
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);