SetupWizard: Ensure setup complete flags are set for secondary users

Change-Id: If96abdb6ccc52f7049018dcae6576dd1b886fc0f
This commit is contained in:
cretin45 2015-06-12 12:24:30 -07:00
parent 82bbed9d9c
commit b7c51828ed

View File

@ -94,6 +94,9 @@ public class SetupWizardApp extends Application {
if (!isOwner
|| Settings.Secure.getInt(getContentResolver(),
Settings.Secure.USER_SETUP_COMPLETE) == 1) {
Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1);
Settings.Secure.putInt(getContentResolver(),
Settings.Secure.USER_SETUP_COMPLETE, 1);
SetupWizardUtils.disableGMSSetupWizard(this);
SetupWizardUtils.disableSetupWizard(this);
if (!isOwner) {