commit | 9867ed7aa98f5a719db4b50c39a290bc0ef38123 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Fri Feb 28 14:00:57 2014 -0800 |
committer | Jeff Brown <jeffbrown@google.com> | Mon Mar 03 15:36:36 2014 -0800 |
tree | f7ad3ac6a53b1d11be19c2a846bf01a1598c43eb | |
parent | 454a0384708433e165a6340dc98bd060775ec613 [diff] [blame] |
Detect invalid uses of Message. Throw an exception when an application attempts to recycle or resend messages that are still in-use. Change-Id: I7096e8b7bd5bec41b7b8ef0c798c55ce3db6827e
diff --git a/core/java/android/os/Looper.java b/core/java/android/os/Looper.java index ff31130..6d7c9cf 100644 --- a/core/java/android/os/Looper.java +++ b/core/java/android/os/Looper.java
@@ -149,7 +149,7 @@ + msg.callback + " what=" + msg.what); } - msg.recycle(); + msg.recycleUnchecked(); } }