Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 514f1629 authored by Makoto Onuki's avatar Makoto Onuki Committed by android-build-merger
Browse files

Merge ""bmgr restore" really should wait until operation finishes." into oc-dev am: b4c2e6f4

am: 3c0b432e

Change-Id: Ib9c45438a8b140028c7e025f4c80ec2d29d9ebc0
parents 90975dc1 3c0b432e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -580,6 +580,11 @@ public final class Bmgr {
            }
        }

        /**
         * Wait until either {@link #restoreFinished} or {@link #restoreStarting} is called.
         * Once one is called, it clears the internal flag again, so that the same observer intance
         * can be reused for a next operation.
         */
        public void waitForCompletion() {
            // The restoreFinished() callback will throw the 'done' flag; we
            // just sit and wait on that notification.
@@ -590,6 +595,7 @@ public final class Bmgr {
                    } catch (InterruptedException ex) {
                    }
                }
                done = false;
            }
        }
    }