From 71beeab14a891297b6658c4aeb47557083091aa1 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Thu, 24 Jun 2010 15:58:01 -0700 Subject: [PATCH] Properly note the current active restore set's token Bug: 2796780 Change-Id: Iad601ed96ae73cf34910a276350712e6af19bb4e --- services/java/com/android/server/BackupManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/java/com/android/server/BackupManagerService.java b/services/java/com/android/server/BackupManagerService.java index d67dde0b75c4d..6e307a58f8278 100644 --- a/services/java/com/android/server/BackupManagerService.java +++ b/services/java/com/android/server/BackupManagerService.java @@ -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 */ }