package com.tencent.mm.plugin.scanner.ui;

import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.scanner.util.r;
import com.tencent.mm.sdk.platformtools.ab;

class k$2 implements Runnable {
    final /* synthetic */ k qeT;

    k$2(k kVar) {
        this.qeT = kVar;
    }

    public final void run() {
        AppMethodBeat.i(81168);
        if (System.currentTimeMillis() - k.a(this.qeT) > 30000) {
            ab.d("MicroMsg.scanner.ScanModeImage", "show scan img nothing recognize");
            this.qeT.qet.kj(true);
            this.qeT.iqU.setVisibility(8);
            k.b(this.qeT).setText(2131302743);
            k.b(this.qeT).setVisibility(0);
            if (k.c(this.qeT) == null) {
                k.a(this.qeT, new OnTouchListener() {
                    public final boolean onTouch(View view, MotionEvent motionEvent) {
                        AppMethodBeat.i(81167);
                        k$2.this.qeT.qet.kj(false);
                        k$2.this.qeT.iqU.setVisibility(0);
                        k$2.this.qeT.iqU.setText(r.fT(r.qiR, k$2.this.qeT.qet.getContext().getString(2131302745)));
                        k.b(k$2.this.qeT).setVisibility(8);
                        k.a(k$2.this.qeT, System.currentTimeMillis());
                        AppMethodBeat.o(81167);
                        return false;
                    }
                });
            }
            k.d(this.qeT).setOnTouchListener(k.c(this.qeT));
        }
        AppMethodBeat.o(81168);
    }
}
