commit | 235af67020a9ea9d1e59b034cbcf1db653205d47 | [log] [tgz] |
---|---|---|
author | Sudheer Koganti <skoganti@codeaurora.org> | Fri Sep 26 08:57:02 2014 -0700 |
committer | WebTech Code Review <code-review@localhost> | Fri Sep 26 14:38:26 2014 -0700 |
tree | a8fe20cea6621805af129ea900ffa80f905057b2 | |
parent | 1c7380d022642a105ff6456b84349cb9ea9cfaba [diff] |
Fix crash on API level 16 Thread.quitSafely is not a supported method on API 16. Fixed by using the alternate quit() method. Change-Id: I711ce90a61a45ece67309db24d96e012361e7513
diff --git a/src/com/android/browser/util/ThreadedCursorAdapter.java b/src/com/android/browser/util/ThreadedCursorAdapter.java index 23dd307..5a0407b 100644 --- a/src/com/android/browser/util/ThreadedCursorAdapter.java +++ b/src/com/android/browser/util/ThreadedCursorAdapter.java
@@ -209,7 +209,7 @@ if (mThread != null) { HandlerThread thread = mThread; mThread = null; - thread.quitSafely(); + thread.quit(); } }