package com.tencent.mm.plugin.soter.c;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.soter.c.b.8;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.ah;
import com.tencent.soter.a.d.b;

class b$4 implements b {
    final /* synthetic */ b rNW;

    b$4(b bVar) {
        this.rNW = bVar;
    }

    public final void bxL() {
        AppMethodBeat.i(73869);
        ab.v("MicroMsg.SoterControllerFingerprint", "alvinluo mp onStartAuthencation");
        this.rNW.rNN = true;
        AppMethodBeat.o(73869);
    }

    public final void onAuthenticationHelp(int i, CharSequence charSequence) {
        AppMethodBeat.i(73870);
        ab.i("MicroMsg.SoterControllerFingerprint", "hy: mp on authen help errCode: %d, errMsg:%s", new Object[]{Integer.valueOf(i), charSequence});
        AppMethodBeat.o(73870);
    }

    public final void bxM() {
        AppMethodBeat.i(73871);
        ab.i("MicroMsg.SoterControllerFingerprint", "hy: mp on authen success");
        this.rNW.rNN = false;
        this.rNW.mrV = null;
        b bVar = this.rNW;
        bVar.iqw.removeCallbacks(bVar.rNV);
        bVar.rNP.setImageResource(2130838824);
        bVar.iqw.setTextColor(bVar.iqw.getResources().getColor(2131690549));
        bVar.iqw.setText(bVar.iqw.getResources().getString(2131303882));
        AppMethodBeat.o(73871);
    }

    public final void onAuthenticationFailed() {
        AppMethodBeat.i(73872);
        ab.w("MicroMsg.SoterControllerFingerprint", "hy: mp user trying failed");
        b bVar = this.rNW;
        String string = ah.getContext().getString(2131303878);
        if (bVar.rNT == null) {
            bVar.rNT = b.eS(bVar.rNP.getContext());
        }
        if (bVar.rNU == null) {
            bVar.rNU = b.eS(bVar.rNP.getContext());
        }
        bVar.rNT.setAnimationListener(new 8(bVar, string));
        bVar.iqw.startAnimation(bVar.rNT);
        bVar.rNP.startAnimation(bVar.rNU);
        this.rNW.mMainHandler.postDelayed(new Runnable() {
            public final void run() {
                AppMethodBeat.i(73868);
                b$4.this.rNW.rNN = false;
                b.a(b$4.this.rNW, true);
                AppMethodBeat.o(73868);
            }
        }, 500);
        AppMethodBeat.o(73872);
    }

    public final void onAuthenticationCancelled() {
        AppMethodBeat.i(73873);
        ab.v("MicroMsg.SoterControllerFingerprint", "alvinluo mp onAuthenticationCancelled");
        this.rNW.mrV = null;
        AppMethodBeat.o(73873);
    }

    public final void onAuthenticationError(int i, CharSequence charSequence) {
        AppMethodBeat.i(73874);
        ab.e("MicroMsg.SoterControllerFingerprint", "hy: on mp authen error errCode: %d, errMsg: %s", new Object[]{Integer.valueOf(i), charSequence});
        AppMethodBeat.o(73874);
    }
}
