Default the auto-restore setting to "enabled."

Change-Id: I7d8710466214a1b09aabdd71e77b9b34d3d62365
This commit is contained in:
Christopher Tate
2010-02-25 18:01:14 -08:00
parent 3f3e53bc30
commit 5035fdab3d

View File

@ -374,7 +374,7 @@ class BackupManagerService extends IBackupManager.Stub {
mProvisioned = Settings.Secure.getInt(context.getContentResolver(),
Settings.Secure.BACKUP_PROVISIONED, 0) != 0;
mAutoRestore = Settings.Secure.getInt(context.getContentResolver(),
Settings.Secure.BACKUP_AUTO_RESTORE, 0) != 0;
Settings.Secure.BACKUP_AUTO_RESTORE, 1) != 0;
// If Encrypted file systems is enabled or disabled, this call will return the
// correct directory.
mBaseStateDir = new File(Environment.getSecureDataDirectory(), "backup");