54 lines
2.5 KiB
Java
54 lines
2.5 KiB
Java
package androidx.core.os;
|
|
|
|
import android.os.Handler;
|
|
import d0.z.d.m;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: Handler.kt */
|
|
public final class HandlerKt {
|
|
public static final Runnable postAtTime(Handler handler, long j, Object obj, Function0<Unit> function0) {
|
|
m.checkParameterIsNotNull(handler, "$this$postAtTime");
|
|
m.checkParameterIsNotNull(function0, "action");
|
|
HandlerKt$postAtTime$runnable$1 handlerKt$postAtTime$runnable$1 = new HandlerKt$postAtTime$runnable$1(function0);
|
|
handler.postAtTime(handlerKt$postAtTime$runnable$1, obj, j);
|
|
return handlerKt$postAtTime$runnable$1;
|
|
}
|
|
|
|
public static /* synthetic */ Runnable postAtTime$default(Handler handler, long j, Object obj, Function0 function0, int i, Object obj2) {
|
|
if ((i & 2) != 0) {
|
|
obj = null;
|
|
}
|
|
m.checkParameterIsNotNull(handler, "$this$postAtTime");
|
|
m.checkParameterIsNotNull(function0, "action");
|
|
HandlerKt$postAtTime$runnable$1 handlerKt$postAtTime$runnable$1 = new HandlerKt$postAtTime$runnable$1(function0);
|
|
handler.postAtTime(handlerKt$postAtTime$runnable$1, obj, j);
|
|
return handlerKt$postAtTime$runnable$1;
|
|
}
|
|
|
|
public static final Runnable postDelayed(Handler handler, long j, Object obj, Function0<Unit> function0) {
|
|
m.checkParameterIsNotNull(handler, "$this$postDelayed");
|
|
m.checkParameterIsNotNull(function0, "action");
|
|
HandlerKt$postDelayed$runnable$1 handlerKt$postDelayed$runnable$1 = new HandlerKt$postDelayed$runnable$1(function0);
|
|
if (obj == null) {
|
|
handler.postDelayed(handlerKt$postDelayed$runnable$1, j);
|
|
} else {
|
|
HandlerCompat.postDelayed(handler, handlerKt$postDelayed$runnable$1, obj, j);
|
|
}
|
|
return handlerKt$postDelayed$runnable$1;
|
|
}
|
|
|
|
public static /* synthetic */ Runnable postDelayed$default(Handler handler, long j, Object obj, Function0 function0, int i, Object obj2) {
|
|
if ((i & 2) != 0) {
|
|
obj = null;
|
|
}
|
|
m.checkParameterIsNotNull(handler, "$this$postDelayed");
|
|
m.checkParameterIsNotNull(function0, "action");
|
|
HandlerKt$postDelayed$runnable$1 handlerKt$postDelayed$runnable$1 = new HandlerKt$postDelayed$runnable$1(function0);
|
|
if (obj == null) {
|
|
handler.postDelayed(handlerKt$postDelayed$runnable$1, j);
|
|
} else {
|
|
HandlerCompat.postDelayed(handler, handlerKt$postDelayed$runnable$1, obj, j);
|
|
}
|
|
return handlerKt$postDelayed$runnable$1;
|
|
}
|
|
}
|