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

import android.widget.ScrollView;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.kernel.g;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.storage.ac.a;
import com.tencent.mm.ui.ae;

class WalletOfflineCoinPurseUI$6 implements Runnable {
    final /* synthetic */ boolean paA;
    final /* synthetic */ WalletOfflineCoinPurseUI pav;
    final /* synthetic */ boolean paw;
    final /* synthetic */ boolean pax;
    final /* synthetic */ boolean pay;
    final /* synthetic */ boolean paz;

    WalletOfflineCoinPurseUI$6(WalletOfflineCoinPurseUI walletOfflineCoinPurseUI, boolean z, boolean z2, boolean z3, boolean z4, boolean z5) {
        this.pav = walletOfflineCoinPurseUI;
        this.paw = z;
        this.pax = z2;
        this.pay = z3;
        this.paz = z4;
        this.paA = z5;
    }

    public final void run() {
        AppMethodBeat.i(43509);
        ScrollView scrollView = (ScrollView) this.pav.findViewById(2131828904);
        if (scrollView == null) {
            AppMethodBeat.o(43509);
            return;
        }
        int bottom;
        int[] iArr = new int[2];
        scrollView.getLocationInWindow(iArr);
        int i = ae.hy(this.pav.mController.ylL).y;
        if (ae.hw(this.pav.mController.ylL)) {
            ab.d("MicroMsg.WalletOfflineCoinPurseUI", "has navi");
            i -= ae.fr(this.pav.mController.ylL);
        }
        if (this.paw) {
            bottom = iArr[1] + WalletOfflineCoinPurseUI.h(this.pav).getBottom();
        } else {
            bottom = 0;
        }
        if (this.pax) {
            bottom = iArr[1] + WalletOfflineCoinPurseUI.i(this.pav).getBottom();
        }
        if (this.pay) {
            bottom = iArr[1] + WalletOfflineCoinPurseUI.j(this.pav).getBottom();
        }
        if (this.paz) {
            bottom = iArr[1] + WalletOfflineCoinPurseUI.k(this.pav).getBottom();
        }
        if (this.paA) {
            bottom = iArr[1] + WalletOfflineCoinPurseUI.l(this.pav).getBottom();
        }
        ab.d("MicroMsg.WalletOfflineCoinPurseUI", "f2f: %s, screen: %s", new Object[]{Integer.valueOf(bottom), Integer.valueOf(i)});
        i = bottom - i;
        if (i > 0) {
            scrollView.scrollBy(0, i);
        }
        g.RP().Ry().set(a.xTP, Boolean.TRUE);
        AppMethodBeat.o(43509);
    }
}
