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

import android.view.View;
import android.widget.RelativeLayout.LayoutParams;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.bz.a;
import com.tencent.mm.sdk.platformtools.ab;

class PaylistAAUI$12 implements Runnable {
    final /* synthetic */ PaylistAAUI gpC;

    PaylistAAUI$12(PaylistAAUI paylistAAUI) {
        this.gpC = paylistAAUI;
    }

    public final void run() {
        AppMethodBeat.i(40877);
        int height = this.gpC.getWindow().getDecorView().getHeight();
        int[] iArr = new int[2];
        View findViewById = this.gpC.findViewById(2131826459);
        findViewById.getLocationInWindow(iArr);
        int height2 = iArr[1] + findViewById.getHeight();
        int fromDPToPix = a.fromDPToPix(this.gpC.mController.ylL, 20);
        int fromDPToPix2 = ((height - height2) - a.fromDPToPix(this.gpC.mController.ylL, 24)) - a.fromDPToPix(this.gpC.mController.ylL, 12);
        if (fromDPToPix2 < fromDPToPix) {
            fromDPToPix2 = fromDPToPix;
        }
        ab.d("MicroMsg.PaylistAAUI", "height: %s, h1: %s, topMargin: %s", new Object[]{Integer.valueOf(height), Integer.valueOf(height2), Integer.valueOf(fromDPToPix2)});
        LayoutParams layoutParams = (LayoutParams) PaylistAAUI.f(this.gpC).getLayoutParams();
        layoutParams.topMargin = fromDPToPix2;
        PaylistAAUI.f(this.gpC).setLayoutParams(layoutParams);
        AppMethodBeat.o(40877);
    }
}
