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

Commit 5ab6e0ba authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Whoops, wait around for pm result.

poll() returns immediately; we want to take() to wait for the result
to actually arrive.

Bug: 17510699
Change-Id: I87669e79e9941480fed33e4cc8a38de793d59e90
parent de74231f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1702,7 +1702,11 @@ public final class Pm {
        }

        public Intent getResult() {
            return mResult.poll();
            try {
                return mResult.take();
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }