summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2010-06-24 15:58:01 -0700
committerandroid-build SharedAccount <android-build@sekiwake.mtv.corp.google.com>2010-06-24 16:06:40 -0700
commit71beeab14a891297b6658c4aeb47557083091aa1 (patch)
tree635171b625dd7cdaffc482ffe3c89f52ccd5ab91
parentb50bbb5237adacb3a404685b31595fa5ae316e75 (diff)
downloadbase-71beeab14a891297b6658c4aeb47557083091aa1.tar.gz
Properly note the current active restore set's tokenandroid-2.2_r1
Bug: 2796780 Change-Id: Iad601ed96ae73cf34910a276350712e6af19bb4e
-rw-r--r--services/java/com/android/server/BackupManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/BackupManagerService.java b/services/java/com/android/server/BackupManagerService.java
index d67dde0b75c4..6e307a58f827 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 */ }