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

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.qqmail.stub.ReadMailProxy;
import com.tencent.mm.sdk.platformtools.ap.a;

class ReadMailUI$4 implements a {
    final /* synthetic */ ReadMailUI pzZ;

    ReadMailUI$4(ReadMailUI readMailUI) {
        this.pzZ = readMailUI;
    }

    public final boolean BI() {
        AppMethodBeat.i(68423);
        if (ReadMailUI.l(this.pzZ).isConnected()) {
            double doubleValue = ((Double) new ReadMailProxy(ReadMailUI.l(this.pzZ), null).REMOTE_CALL("getMailAppDownloadProgress", new Object[]{Long.valueOf(ReadMailUI.B(this.pzZ))})).doubleValue();
            if (doubleValue == 1.0d) {
                ReadMailUI.t(this.pzZ);
                AppMethodBeat.o(68423);
                return false;
            }
            int i;
            if (ReadMailUI.N(this.pzZ) == 0) {
                ReadMailUI.c(this.pzZ, ReadMailUI.O(this.pzZ).getWidth());
                i = 0;
            } else {
                i = (int) (((double) ReadMailUI.N(this.pzZ)) * doubleValue);
            }
            ReadMailUI.b(this.pzZ, i);
            AppMethodBeat.o(68423);
            return true;
        }
        AppMethodBeat.o(68423);
        return false;
    }
}
