package X; import android.content.Context; import android.os.Handler; import com.bytedance.android.livesdk.livesetting.performance.LiveBroadcastPoorDeviceDelayDurationSetting; import com.bytedance.covode.number.Covode; import com.bytedance.liko.leakdetector.LeakDetectorInstaller; import com.bytedance.liko.memoryexplorer.MemoryConfig; import java.util.concurrent.Callable; /* renamed from: X.2KF reason: invalid class name */ public final class AnonymousClass2KF<V> implements Callable<TResult> { public final /* synthetic */ Context LIZ; static { Covode.recordClassIndex(29631); } public AnonymousClass2KF(Context context) { this.LIZ = context; } @Override // java.util.concurrent.Callable public final Object call() { int optInt = C56002Ir.LJFF.optInt("strategy", 0); if (optInt > 0) { C56002Ir.LJFF.put("url", "https://api-va.tiktokv.com/"); MemoryConfig.initJsonConfig(C56002Ir.LJFF.toString()); Handler handler = LeakDetectorInstaller.INSTANCE.getHandler(); if (handler != null) { handler.post(new AnonymousClass2KJ(this, optInt)); } LeakDetectorInstaller.INSTANCE.setTrySumTime(0); return C23860x5.LIZ; } else if (optInt == 0) { LeakDetectorInstaller leakDetectorInstaller = LeakDetectorInstaller.INSTANCE; leakDetectorInstaller.setTrySumTime(leakDetectorInstaller.getTrySumTime() + LiveBroadcastPoorDeviceDelayDurationSetting.DEFAULT); C21090sc.LIZ("Leak detector strategy < 1,retry"); Handler handler2 = LeakDetectorInstaller.INSTANCE.getHandler(); if (handler2 != null) { return Boolean.valueOf(handler2.sendEmptyMessageDelayed(0, LiveBroadcastPoorDeviceDelayDurationSetting.DEFAULT)); } return null; } else { C21090sc.LIZ("Leak detector strategy < 0, finish"); return C23860x5.LIZ; } } }