Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 202f9273 authored by cretin45's avatar cretin45
Browse files

SetupWizard: Don't run wizard if user_setup_complete is set

Change-Id: I2e97ecb4fa0458b117e0250595306706245c9c67
parent 0d39727f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@
        android:versionCode="3"
        android:sharedUserId="android.uid.system">

    <original-package android:name="com.cyanogenmod.account" />

    <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
    <uses-permission android:name="android.permission.STATUS_BAR" />
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
+10 −0
Original line number Diff line number Diff line
@@ -81,6 +81,16 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks
        if (savedInstanceState != null && savedInstanceState.containsKey("data")) {
            mSetupData.load(savedInstanceState.getBundle("data"));
        }
        // Since this is a new component, we need to disable here if the user
        // has already been through setup on a previous version.
        try {
            if (Settings.Secure.getInt(getContentResolver(),
                    Settings.Secure.USER_SETUP_COMPLETE) == 1) {
                finishSetup();
            }
        } catch (Settings.SettingNotFoundException e) {
            // Continue with setup
        }
    }

    @Override