diff options
author | Christopher Tate <ctate@google.com> | 2010-04-06 12:17:12 -0700 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2010-04-06 12:17:46 -0700 |
commit | 1398e27bb0f5768cbbd5b9d9fd7c8675da63ccb0 (patch) | |
tree | 91eea1fbb15f2e7a96df53d2268aa62867a81039 /cmds/bmgr | |
parent | fede9aed2b1f0b6316e18cbfa58be593fa7eb14c (diff) | |
download | frameworks_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.java | 2 |
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) { |