summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2010-06-24 15:58:01 -0700
committerChristopher Tate <ctate@google.com>2010-06-24 15:58:01 -0700
commit2950555aac546cd95b7ae268b5851895e1289ec2 (patch)
tree7850e469209374754bb170768fa3af0679f55c3a /services
parent753e56090ed5acc0d2173a8e9ab1a9b96528720b (diff)
downloadframeworks_base-2950555aac546cd95b7ae268b5851895e1289ec2.zip
frameworks_base-2950555aac546cd95b7ae268b5851895e1289ec2.tar.gz
frameworks_base-2950555aac546cd95b7ae268b5851895e1289ec2.tar.bz2
Properly note the current active restore set's token
Bug: 2796780 Change-Id: Iad601ed96ae73cf34910a276350712e6af19bb4e
Diffstat (limited to 'services')
-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 d67dde0..6e307a5 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 */ }