package com.tencent.mm.plugin.subapp.ui.voicetranstext;

import com.tencent.matrix.trace.core.AppMethodBeat;

class VoiceTransTextUI$7 implements Runnable {
    final /* synthetic */ VoiceTransTextUI swl;
    final /* synthetic */ boolean swo;

    VoiceTransTextUI$7(VoiceTransTextUI voiceTransTextUI, boolean z) {
        this.swl = voiceTransTextUI;
        this.swo = z;
    }

    public final void run() {
        AppMethodBeat.i(25600);
        if (VoiceTransTextUI.r(this.swl).getMeasuredHeight() >= VoiceTransTextUI.s(this.swl).getMeasuredHeight()) {
            VoiceTransTextUI.r(this.swl).fullScroll(130);
            int scrollY = VoiceTransTextUI.r(this.swl).getScrollY();
            VoiceTransTextUI.c(this.swl, VoiceTransTextUI.r(this.swl).getPaddingTop());
            VoiceTransTextUI.c(this.swl, VoiceTransTextUI.t(this.swl) - scrollY);
            if (this.swo) {
                VoiceTransTextUI.r(this.swl).setPadding(0, 0, 0, 0);
                VoiceTransTextUI.u(this.swl).setVisibility(8);
                VoiceTransTextUI.u(this.swl).setHeight(0);
            } else if (VoiceTransTextUI.t(this.swl) > 0) {
                VoiceTransTextUI.r(this.swl).setPadding(0, VoiceTransTextUI.t(this.swl), 0, 0);
                AppMethodBeat.o(25600);
                return;
            }
        }
        AppMethodBeat.o(25600);
    }
}
