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
This commit is contained in:
Jeff Sharkey
2014-09-15 14:50:41 -07:00
parent de74231f24
commit 5ab6e0bac2

View File

@@ -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);
}
}
}