- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
19 lines
610 B
Java
19 lines
610 B
Java
package com.helpshift.concurrency;
|
|
|
|
import android.os.Handler;
|
|
import android.os.Looper;
|
|
import com.helpshift.util.SafeWrappedRunnable;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class HSUIThreader implements HSThreader {
|
|
@Override // com.helpshift.concurrency.HSThreader
|
|
public void submit(Runnable runnable) {
|
|
SafeWrappedRunnable safeWrappedRunnable = new SafeWrappedRunnable(runnable);
|
|
if (Looper.myLooper() == Looper.getMainLooper()) {
|
|
safeWrappedRunnable.run();
|
|
} else {
|
|
new Handler(Looper.getMainLooper()).post(safeWrappedRunnable);
|
|
}
|
|
}
|
|
}
|