Properly note the current active restore set's token

Bug: 2796780
Change-Id: Iad601ed96ae73cf34910a276350712e6af19bb4e
This commit is contained in:
Christopher Tate
2010-06-24 15:58:01 -07:00
committed by android-build SharedAccount
parent b50bbb5237
commit 71beeab14a

View File

@@ -1313,7 +1313,7 @@ class BackupManagerService extends IBackupManager.Stub {
// If everything actually went through and this is the first time we've
// done a backup, we can now record what the current backup dataset token
// is.
if ((mCurrentToken == 0) && (status != BackupConstants.TRANSPORT_OK)) {
if ((mCurrentToken == 0) && (status == BackupConstants.TRANSPORT_OK)) {
try {
mCurrentToken = mTransport.getCurrentRestoreSet();
} catch (RemoteException e) { /* cannot happen */ }