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

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.bz.a;
import com.tencent.mm.pluginsdk.f;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.ui.ak;

class LuckyMoneyDetailUI$26 implements Runnable {
    final /* synthetic */ LuckyMoneyDetailUI oeA;

    LuckyMoneyDetailUI$26(LuckyMoneyDetailUI luckyMoneyDetailUI) {
        this.oeA = luckyMoneyDetailUI;
    }

    public final void run() {
        AppMethodBeat.i(42676);
        if (LuckyMoneyDetailUI.S(this.oeA).getVisibility() == 8 && LuckyMoneyDetailUI.T(this.oeA).getVisibility() == 8 && LuckyMoneyDetailUI.U(this.oeA).getVisibility() == 8) {
            LuckyMoneyDetailUI.V(this.oeA).removeFooterView(LuckyMoneyDetailUI.Q(this.oeA));
            AppMethodBeat.o(42676);
            return;
        }
        int ge = (a.ge(this.oeA.mController.ylL) - ak.hF(this.oeA)) - f.de(this.oeA);
        int measuredHeight = LuckyMoneyDetailUI.V(this.oeA).getMeasuredHeight();
        int fromDPToPix = a.fromDPToPix(this.oeA.mController.ylL, 29);
        int fromDPToPix2 = a.fromDPToPix(this.oeA.mController.ylL, 16);
        if (measuredHeight < ge) {
            LuckyMoneyDetailUI.Q(this.oeA).setPadding(0, fromDPToPix + (ge - LuckyMoneyDetailUI.V(this.oeA).getMeasuredHeight()), 0, fromDPToPix2);
        } else {
            LuckyMoneyDetailUI.Q(this.oeA).setPadding(0, fromDPToPix, 0, fromDPToPix2);
        }
        ab.d("MicroMsg.LuckyMoneyDetailUI", "winHeight:%s showHeight:%s recordHeight:%s", new Object[]{Integer.valueOf(r0), Integer.valueOf(ge), Integer.valueOf(measuredHeight)});
        AppMethodBeat.o(42676);
    }
}
