SetupWizard: Don't show restore page if already enabled

Change-Id: I3ed4563efe10b644d5c63fc52f409021ab749924
This commit is contained in:
cretin45 2015-02-11 08:37:59 -08:00
parent f938b6b5c3
commit be13e9b452

View File

@ -59,6 +59,8 @@ public class GmsAccountPage extends SetupPage {
public GmsAccountPage(final Context context, SetupDataCallbacks callbacks) { public GmsAccountPage(final Context context, SetupDataCallbacks callbacks) {
super(context, callbacks); super(context, callbacks);
final ContentResolver res = context.getContentResolver(); final ContentResolver res = context.getContentResolver();
mBackupEnabled = Settings.Secure.getInt(res,
Settings.Secure.BACKUP_ENABLED, 0) == 1;
mSettingsObserver = new Observer() { mSettingsObserver = new Observer() {
public void update(Observable o, Object arg) { public void update(Observable o, Object arg) {
mBackupEnabled = (Settings.Secure.getInt(res, mBackupEnabled = (Settings.Secure.getInt(res,