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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user