summaryrefslogtreecommitdiffstats
path: root/cmds/bmgr
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2010-04-06 12:17:12 -0700
committerChristopher Tate <ctate@google.com>2010-04-06 12:17:46 -0700
commit1398e27bb0f5768cbbd5b9d9fd7c8675da63ccb0 (patch)
tree91eea1fbb15f2e7a96df53d2268aa62867a81039 /cmds/bmgr
parentfede9aed2b1f0b6316e18cbfa58be593fa7eb14c (diff)
downloadframeworks_base-1398e27bb0f5768cbbd5b9d9fd7c8675da63ccb0.zip
frameworks_base-1398e27bb0f5768cbbd5b9d9fd7c8675da63ccb0.tar.gz
frameworks_base-1398e27bb0f5768cbbd5b9d9fd7c8675da63ccb0.tar.bz2
Fix 'bmgr restore'
Zero means success. Fixes bug #2573785 Change-Id: I11bd4d85aa2b3a061aa37e085790ee8cd52d50a2
Diffstat (limited to 'cmds/bmgr')
-rw-r--r--cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java b/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
index 5612158..8263e75 100644
--- a/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
+++ b/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
@@ -373,7 +373,7 @@ public final class Bmgr {
}
RestoreSet[] sets = null;
int err = mRestore.getAvailableRestoreSets(observer);
- if (err != 0) {
+ if (err == 0) {
observer.waitForCompletion();
sets = observer.sets;
for (RestoreSet s : sets) {