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

import android.widget.Toast;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.ap.a;
import com.tencent.mm.sdk.platformtools.bo;

class FavPostVoiceUI$7 implements a {
    final /* synthetic */ FavPostVoiceUI miR;

    FavPostVoiceUI$7(FavPostVoiceUI favPostVoiceUI) {
        this.miR = favPostVoiceUI;
    }

    public final boolean BI() {
        AppMethodBeat.i(74047);
        if (FavPostVoiceUI.q(this.miR) == -1) {
            FavPostVoiceUI.a(this.miR, bo.yz());
        }
        long az = bo.az(FavPostVoiceUI.q(this.miR));
        if (az >= 3590000 && az <= 3600000) {
            if (FavPostVoiceUI.r(this.miR) == null) {
                FavPostVoiceUI.a(this.miR, Toast.makeText(this.miR, this.miR.getString(2131299586, new Object[]{Integer.valueOf((int) ((3600000 - az) / 1000))}), 0));
            } else {
                FavPostVoiceUI.r(this.miR).setText(this.miR.getString(2131299586, new Object[]{Integer.valueOf((int) ((3600000 - az) / 1000))}));
            }
            FavPostVoiceUI.r(this.miR).show();
        }
        if (az >= 3600000) {
            ab.v("MicroMsg.FavPostVoiceUI", "record stop on countdown");
            FavPostVoiceUI.s(this.miR);
            FavPostVoiceUI.p(this.miR);
            AppMethodBeat.o(74047);
            return false;
        }
        AppMethodBeat.o(74047);
        return true;
    }
}
