We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bbe2c3 commit 989b35aCopy full SHA for 989b35a
library/src/main/java/com/loopj/android/http/AsyncHttpResponseHandler.java
@@ -322,11 +322,11 @@ protected void postRunnable(Runnable runnable) {
322
boolean missingLooper = null == Looper.myLooper();
323
if (runnable != null) {
324
if (missingLooper) {
325
- // If there is no looper, run on current thread
326
- runnable.run();
327
- } else {
328
- // Otherwise, run on a handler we create
+ // If there is no looper, run on provided handler
329
handler.post(runnable);
+ } else {
+ // Otherwise, run on current thread
+ runnable.run();
330
}
331
332
0 commit comments