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

Commit be13e9b4 authored by cretin45's avatar cretin45
Browse files

SetupWizard: Don't show restore page if already enabled

Change-Id: I3ed4563efe10b644d5c63fc52f409021ab749924
parent f938b6b5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -59,6 +59,8 @@ public class GmsAccountPage extends SetupPage {
    public GmsAccountPage(final Context context, SetupDataCallbacks callbacks) {
        super(context, callbacks);
        final ContentResolver res = context.getContentResolver();
        mBackupEnabled = Settings.Secure.getInt(res,
                Settings.Secure.BACKUP_ENABLED, 0) == 1;
        mSettingsObserver = new Observer() {
            public void update(Observable o, Object arg) {
                mBackupEnabled = (Settings.Secure.getInt(res,