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
1 changed files with 2 additions and 0 deletions

View File

@ -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,