package com.kofax.mobile.sdk._internal.impl; import android.os.Handler; import android.os.Looper; import android.view.View; import java.lang.ref.WeakReference; import o.InterfaceC13391fZD; /* loaded from: classes3.dex */ public class y implements com.kofax.mobile.sdk._internal.view.i { private WeakReference wP; private long wQ; private final Handler wO = new Handler(Looper.getMainLooper()); private final Runnable wR = new Runnable(this) { // from class: com.kofax.mobile.sdk._internal.impl.y.1 final y wS; { this.wS = this; } @Override // java.lang.Runnable public void run() { View view = (View) this.wS.wP.get(); if (view == null) { this.wS.stop(); } else { view.invalidate(); this.wS.wO.postDelayed(this.wS.wR, this.wS.wQ); } } }; @InterfaceC13391fZD public y() { } @Override // com.kofax.mobile.sdk._internal.view.i public void a(View view, long j) { this.wP = new WeakReference<>(view); this.wQ = j; this.wO.postDelayed(this.wR, j); } @Override // com.kofax.mobile.sdk._internal.view.i public void stop() { this.wO.removeCallbacks(this.wR); } }