SetupWizard: Don't show restore page if already enabled
Change-Id: I3ed4563efe10b644d5c63fc52f409021ab749924
This commit is contained in:
parent
f938b6b5c3
commit
be13e9b452
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user