diff options
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index 3863bc7..6d12133 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -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); + } } } |