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

import android.os.Message;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.ak;

class BaseScanUI$9 extends ak {
    final /* synthetic */ BaseScanUI qbV;

    BaseScanUI$9(BaseScanUI baseScanUI) {
        this.qbV = baseScanUI;
    }

    public final void handleMessage(Message message) {
        AppMethodBeat.i(138463);
        if (message != null && message.what == 1) {
            if (BaseScanUI.p(this.qbV) == null || BaseScanUI.q(this.qbV) == null || (BaseScanUI.b(this.qbV) && !BaseScanUI.c(this.qbV))) {
                AppMethodBeat.o(138463);
                return;
            } else if (BaseScanUI.i(this.qbV) == null || BaseScanUI.i(this.qbV).cgQ() <= 0) {
                ab.w("MicroMsg.scanner.BaseScanUI", "startAnimHandler scanMode == null");
                this.qbV.cgZ();
                AppMethodBeat.o(138463);
                return;
            } else {
                BaseScanUI.p(this.qbV).setVisibility(0);
                BaseScanUI.q(this.qbV).setRepeatCount(-1);
                BaseScanUI.q(this.qbV).setDuration(2600);
                BaseScanUI.p(this.qbV).startAnimation(BaseScanUI.q(this.qbV));
            }
        }
        AppMethodBeat.o(138463);
    }
}
