package com.tencent.mm.plugin.brandservice.ui.timeline;

import android.os.Bundle;
import android.os.Looper;
import android.view.View;
import android.view.View.OnLayoutChangeListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.w;
import com.tencent.mm.aj.z;
import com.tencent.mm.hardcoder.WXHardCoderJNI;
import com.tencent.mm.kernel.g;
import com.tencent.mm.kernel.i;
import com.tencent.mm.plugin.bizui.widget.StoryListView;
import com.tencent.mm.plugin.brandservice.a.b;
import com.tencent.mm.plugin.brandservice.ui.timeline.c.1;
import com.tencent.mm.plugin.brandservice.ui.timeline.f.2;
import com.tencent.mm.plugin.brandservice.ui.timeline.offenread.BizTimeLineHotView;
import com.tencent.mm.plugin.brandservice.ui.timeline.offenread.e;
import com.tencent.mm.plugin.messenger.foundation.a.j;
import com.tencent.mm.pluginsdk.f;
import com.tencent.mm.pluginsdk.ui.tools.k;
import com.tencent.mm.protocal.protobuf.bfc;
import com.tencent.mm.protocal.protobuf.bfd;
import com.tencent.mm.protocal.protobuf.bfe;
import com.tencent.mm.sdk.b.a;
import com.tencent.mm.sdk.g.d;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.al;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.storage.ac;
import com.tencent.mm.storage.q;
import com.tencent.mm.storage.r.c;
import com.tencent.mm.storage.s;
import com.tencent.mm.ui.MMActivity;
import com.tencent.mm.ui.base.h;
import com.tencent.mm.ui.chatting.ao;
import java.util.LinkedList;
import java.util.List;
import java.util.Map.Entry;
import org.xwalk.core.XWalkFeature;

@i
public class BizTimeLineUI extends MMActivity implements h {
    private static long jOv = 0;
    private static long jOw = 0;
    private static long jOx = 0;
    private static int jOy = 0;
    private static int jOz = 0;
    private boolean cAY = false;
    private int ctE;
    private int cvd = 1;
    private int ehv;
    private TextView emptyTipTv;
    private View gwR;
    private long iQc = 0;
    private View jNV;
    BizTimeLineHotView jNo;
    private boolean jNw = false;
    private f jNy;
    private long jOA = 0;
    private long jOB = 0;
    private boolean jOC = false;
    private c jOD = new 11(this);
    private long jOE = 0;
    private final long jOF = 100;
    private boolean jOG = false;
    private List<q> jOH = new LinkedList();
    private boolean jOI = false;
    private com.tencent.mm.sdk.b.c jOJ = new 9(this);
    public StoryListView jOm;
    private View jOn;
    private ImageView jOo;
    LinearLayout jOp;
    private TextView jOq;
    private TextView jOr;
    private View jOs;
    private a jOt;
    private d jOu;
    private int joI = -1;

    public void onWindowFocusChanged(boolean z) {
        super.onWindowFocusChanged(z);
        AppMethodBeat.at(this, z);
    }

    public BizTimeLineUI() {
        AppMethodBeat.i(14203);
        AppMethodBeat.o(14203);
    }

    static /* synthetic */ void a(BizTimeLineUI bizTimeLineUI) {
        AppMethodBeat.i(14222);
        bizTimeLineUI.aWy();
        AppMethodBeat.o(14222);
    }

    static /* synthetic */ void b(BizTimeLineUI bizTimeLineUI, int i, int i2) {
        AppMethodBeat.i(14228);
        bizTimeLineUI.dE(i, i2);
        AppMethodBeat.o(14228);
    }

    public void onCreate(Bundle bundle) {
        AppMethodBeat.i(14204);
        super.onCreate(bundle);
        xE(-1052684);
        setTitleBarDoubleClickListener(new Runnable() {
            public final void run() {
                AppMethodBeat.i(14185);
                if (BizTimeLineUI.this.uiu || BizTimeLineUI.this.isFinishing()) {
                    AppMethodBeat.o(14185);
                    return;
                }
                BizTimeLineUI.m(BizTimeLineUI.this);
                AppMethodBeat.o(14185);
            }
        });
        com.tencent.mm.storage.c ll = com.tencent.mm.model.c.c.abi().ll("100045");
        boolean z = ll.isValid() && "1".equals(ll.dru().get("isOpenSearch"));
        ab.d("MicroMsg.BizTimeLineUI", "open search entrance:%b", new Object[]{Boolean.valueOf(z)});
        if (z) {
            addIconOptionMenu(0, 2131304082, 2131230741, new 18(this));
        }
        addIconOptionMenu(1, 2131297680, 2131230752, new 2(this));
        setMMTitle(2131297684);
        ta(-16777216);
        setBackBtn(new 4(this), 2131230737);
        this.jOn = getLayoutInflater().inflate(2130968857, null);
        this.jOr = (TextView) this.jOn.findViewById(2131821805);
        this.jOr.setTextSize(1, 14.0f);
        this.jOs = this.jOn.findViewById(2131821804);
        ((LinearLayout) this.mController.mActionBar.getCustomView()).addView(this.jOn);
        LayoutParams layoutParams = (LayoutParams) this.jOn.getLayoutParams();
        layoutParams.width = -1;
        layoutParams.weight = 1.0f;
        this.jOn.setLayoutParams(layoutParams);
        this.jOs.setOnClickListener(new 5(this));
        this.jOn.setVisibility(8);
        this.emptyTipTv = (TextView) findViewById(2131821807);
        this.emptyTipTv.setText(2131297658);
        this.jOu = new d(this);
        a.xxA.c(this.jOu.hAA);
        this.ctE = (int) (System.currentTimeMillis() / 1000);
        this.cvd = getIntent().getIntExtra("biz_enter_source", 1);
        this.jNy = new f(this.ctE);
        s.Mj(this.ctE);
        c cVar = new c();
        if (c.aWu()) {
            aWy();
        } else {
            getString(2131297061);
            d.post(new 1(cVar, new 12(this, h.b(this, getString(2131297086), false, null))), "BizTimeLineMigrateThread");
        }
        ab.d("MicroMsg.BizTimeLineMigrateImp", "migrateOldList");
        int intValue = ((Integer) g.RP().Ry().get(ac.a.xVm, Integer.valueOf(0))).intValue();
        if ((intValue & 4) == 0) {
            ((j) g.K(j.class)).XR().apc("officialaccounts");
            g.RP().Ry().set(ac.a.xVm, Integer.valueOf(intValue | 4));
        }
        f.n(this);
        this.jOA = System.currentTimeMillis();
        a.xxA.c(this.jOJ);
        if (((b) g.K(b.class)).rW(1)) {
            ((b) g.K(b.class)).rX(90);
        }
        AppMethodBeat.o(14204);
    }

    public final void aWx() {
        AppMethodBeat.i(14206);
        if (isFinishing()) {
            AppMethodBeat.o(14206);
            return;
        }
        if (z.aeY().baS() > 0) {
            this.jOp.setVisibility(0);
            this.jOq.setText(getString(2131297673, new Object[]{Integer.valueOf(r0)}));
            q drQ = z.aeY().drQ();
            if (drQ != null) {
                this.jOo.setVisibility(0);
                com.tencent.mm.pluginsdk.ui.a.b.b(this.jOo, drQ.field_talker);
                s.mM(drQ.field_msgId);
            } else {
                this.jOo.setVisibility(8);
            }
            if (this.jOt != null && this.jOt.getCount() == 0) {
                this.jOt.notifyDataSetChanged();
            }
            AppMethodBeat.o(14206);
            return;
        }
        this.jOp.setVisibility(8);
        AppMethodBeat.o(14206);
    }

    private void aX(List<q> list) {
        AppMethodBeat.i(14208);
        Looper.myQueue().addIdleHandler(new 16(this, list));
        AppMethodBeat.o(14208);
    }

    private void c(q qVar) {
        AppMethodBeat.i(14209);
        this.jOm.postDelayed(new 17(this, qVar), 50);
        AppMethodBeat.o(14209);
    }

    private View aWz() {
        AppMethodBeat.i(14210);
        this.jNV = getLayoutInflater().inflate(2130968860, null);
        View view = this.jNV;
        AppMethodBeat.o(14210);
        return view;
    }

    private View aWA() {
        AppMethodBeat.i(14211);
        this.gwR = getLayoutInflater().inflate(2130968861, null);
        this.jNo = (BizTimeLineHotView) this.gwR.findViewById(2131821813);
        View view = this.gwR;
        AppMethodBeat.o(14211);
        return view;
    }

    public final void aWB() {
        AppMethodBeat.i(14212);
        if (!(isFinishing() || this.jNV == null)) {
            TextView textView = (TextView) findViewById(2131821812);
            ((ProgressBar) findViewById(2131821811)).setVisibility(8);
            textView.setText(getString(2131297670));
        }
        AppMethodBeat.o(14212);
    }

    public final int getLayoutId() {
        return 2130968858;
    }

    public final void aWC() {
        AppMethodBeat.i(14213);
        long currentTimeMillis = System.currentTimeMillis() - this.jOE;
        if (!this.jOG || currentTimeMillis >= 200) {
            ab.d("MicroMsg.BizTimeLineUI", "try2UpdateActionBarCustomView isDoingUpdateView %s,interval %s", new Object[]{Boolean.valueOf(this.jOG), Long.valueOf(currentTimeMillis)});
            this.jOG = true;
            if (currentTimeMillis < 100) {
                al.n(new 6(this), 100);
                AppMethodBeat.o(14213);
                return;
            }
            aWD();
            this.jOE = System.currentTimeMillis();
            this.jOG = false;
            AppMethodBeat.o(14213);
            return;
        }
        ab.d("MicroMsg.BizTimeLineUI", "DoingUpdateView return");
        AppMethodBeat.o(14213);
    }

    private void aWD() {
        AppMethodBeat.i(14214);
        if (this.jOt == null || this.cAY) {
            AppMethodBeat.o(14214);
        } else if (this.jOt.iKa.size() > 0) {
            long j = ((q) this.jOt.iKa.get(0)).field_orderFlag;
            ab.d("MicroMsg.BizTimeLineUI", "updateActionBarCustomView %d", new Object[]{Integer.valueOf(z.aeX().mG(j))});
            if (z.aeX().mG(j) > 0) {
                MY(8);
                if (this.jOn.getVisibility() == 8) {
                    this.jOn.setVisibility(4);
                }
                this.jOr.setText(getString(2131297679, new Object[]{Integer.valueOf(r2)}));
                this.jOn.post(new 7(this, j));
                AppMethodBeat.o(14214);
                return;
            }
            this.jOn.setVisibility(8);
            MY(0);
            AppMethodBeat.o(14214);
        } else {
            AppMethodBeat.o(14214);
        }
    }

    public final void aWE() {
        AppMethodBeat.i(14215);
        ab.d("MicroMsg.BizTimeLineUI", "hideActionBarCustomView");
        aWC();
        AppMethodBeat.o(14215);
    }

    public final void aWv() {
        AppMethodBeat.i(14216);
        if (this.jOt != null) {
            this.jOt.notifyDataSetChanged();
        }
        AppMethodBeat.o(14216);
    }

    public void onDestroy() {
        AppMethodBeat.i(14217);
        super.onDestroy();
        a.xxA.d(this.jOu.hAA);
        jOv = System.currentTimeMillis();
        if (!(this.jOt == null || this.jOm == null)) {
            q aWp = this.jOt.aWp();
            if (aWp != null) {
                jOw = aWp.field_orderFlag;
            }
            aWp = this.jOt.sg(aWF());
            if (aWp != null) {
                jOx = aWp.field_orderFlag;
            } else {
                ab.w("MicroMsg.BizTimeLineUI", "FirstVisibleItem is null %d", new Object[]{Integer.valueOf(aWF())});
            }
            a aVar = this.jOt;
            z.aeX().a(aVar.jKp);
            aVar.jNp.jQR.clear();
        }
        z.aeY().a(this.jOD);
        if (this.jOA != 0) {
            this.iQc += System.currentTimeMillis() - this.jOB;
            com.tencent.mm.plugin.report.service.h.pYm.e(13932, new Object[]{Integer.valueOf(((int) (r0 - this.jOA)) / XWalkFeature.INTERFACE_GEO_LOCATION_PERMISSION), Integer.valueOf(1), Integer.valueOf(this.ctE), Integer.valueOf((int) (this.iQc / 1000)), Integer.valueOf(this.cvd)});
        }
        a.xxA.d(this.jOJ);
        this.jNy.jOe = aWF();
        com.tencent.mm.plugin.brandservice.b.a("BrandServiceWorkerThread", new 2(this.jNy), 0);
        com.tencent.mm.plugin.brandservice.ui.b.b.clean();
        ao.clear();
        BizTimeLineHotView bizTimeLineHotView = this.jNo;
        ((j) g.K(j.class)).XR().b(bizTimeLineHotView);
        a.xxA.d(bizTimeLineHotView.jQq);
        e eVar = bizTimeLineHotView.jQg;
        com.tencent.mm.ai.b.a aVar2 = new com.tencent.mm.ai.b.a();
        bfc bfc = new bfc();
        aVar2.fsJ = bfc;
        aVar2.fsK = new bfd();
        aVar2.uri = "/cgi-bin/micromsg-bin/often_read_bar_report";
        aVar2.fsI = 2550;
        com.tencent.mm.ai.b acD = aVar2.acD();
        bfc.vZZ = s.getSessionId();
        bfc.wIZ = eVar.jQC;
        LinkedList linkedList = new LinkedList();
        if (eVar.jQB.size() > 0) {
            for (Entry value : eVar.jQB.entrySet()) {
                linkedList.add((bfe) value.getValue());
            }
        }
        bfc.wIY = linkedList;
        w.a(acD, new e.1(eVar));
        g.Rg().b(2768, bizTimeLineHotView);
        s.Mj(0);
        AppMethodBeat.o(14217);
    }

    public void onResume() {
        AppMethodBeat.i(14218);
        super.onResume();
        if (this.jOC) {
            this.jOC = false;
            this.jNy.si(8);
        }
        if (this.jOt != null) {
            a aVar = this.jOt;
            aVar.cAY = false;
            com.tencent.mm.plugin.brandservice.ui.timeline.preload.c cVar = aVar.jNp;
            if (cVar.jQU) {
                cVar.jQU = false;
                if (cVar.jQO <= 0) {
                    cVar.aWR();
                }
            }
        }
        if (this.cAY) {
            this.cAY = false;
            aWC();
        }
        this.jOB = System.currentTimeMillis();
        com.tencent.mm.plugin.brandservice.b.a("BrandServiceWorkerThread", new 10(this), 500);
        AppMethodBeat.o(14218);
    }

    public void onPause() {
        AppMethodBeat.i(14219);
        super.onPause();
        q qVar = null;
        if (this.jOt != null) {
            a aVar = this.jOt;
            aVar.jNv.stopPlay();
            aVar.cAY = true;
            aVar.jNp.jQU = true;
            qVar = this.jOt.aWq();
        }
        aY(this.jOH);
        if (qVar != null) {
            z.aeX().mH(qVar.field_orderFlag);
        } else {
            z.aeX().drK();
        }
        if (this.jOm != null) {
            int top;
            View childAt = this.jOm.getChildAt(0);
            if (childAt != null) {
                top = childAt.getTop();
            } else {
                top = 0;
            }
            jOy = top;
        } else {
            jOy = 0;
        }
        this.cAY = true;
        long currentTimeMillis = System.currentTimeMillis();
        this.iQc += currentTimeMillis - this.jOB;
        this.jOB = currentTimeMillis;
        WXHardCoderJNI.stopPerformance(WXHardCoderJNI.hcBizEnable, this.ehv);
        this.ehv = 0;
        AppMethodBeat.o(14219);
    }

    private void dE(int i, int i2) {
        int i3 = 0;
        AppMethodBeat.i(14220);
        if (!(i != 0 || this.jNw || jOz == i)) {
            this.jNo.aWJ();
        }
        if (this.jNw || this.jOI || (jOz == i && this.joI == i2)) {
            AppMethodBeat.o(14220);
            return;
        }
        int i4;
        this.joI = i2;
        if (i > 0) {
            i4 = i - 1;
        } else {
            i4 = 0;
        }
        if (i2 > 0) {
            i3 = i2 - 1;
        }
        LinkedList linkedList = new LinkedList();
        for (i4 = 
/*
Method generation error in method: com.tencent.mm.plugin.brandservice.ui.timeline.BizTimeLineUI.dE(int, int):void, dex: 
jadx.core.utils.exceptions.CodegenException: Error generate insn: PHI: (r1_8 'i4' int) = (r1_7 'i4' int), (r1_11 'i4' int) binds: {(r1_7 'i4' int)=B:18:0x002d, (r1_11 'i4' int)=B:29:0x004d} in method: com.tencent.mm.plugin.brandservice.ui.timeline.BizTimeLineUI.dE(int, int):void, dex: 
	at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:228)
	at jadx.core.codegen.RegionGen.makeLoop(RegionGen.java:185)
	at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:63)
	at jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:89)
	at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:55)
	at jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:89)
	at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:55)
	at jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:89)
	at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:55)
	at jadx.core.codegen.MethodGen.addInstructions(MethodGen.java:183)
	at jadx.core.codegen.ClassGen.addMethod(ClassGen.java:321)
	at jadx.core.codegen.ClassGen.addMethods(ClassGen.java:259)
	at jadx.core.codegen.ClassGen.addClassBody(ClassGen.java:221)
	at jadx.core.codegen.ClassGen.addClassCode(ClassGen.java:111)
	at jadx.core.codegen.ClassGen.makeClass(ClassGen.java:77)
	at jadx.core.codegen.CodeGen.visit(CodeGen.java:10)
	at jadx.core.ProcessClass.process(ProcessClass.java:38)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:292)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
	at jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)
Caused by: jadx.core.utils.exceptions.CodegenException: PHI can be used only in fallback mode
	at jadx.core.codegen.InsnGen.fallbackOnlyInsn(InsnGen.java:539)
	at jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:511)
	at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:222)
	... 19 more

*/

    private static void aY(List<q> list) {
        AppMethodBeat.i(14221);
        if (!bo.ek(list)) {
            LinkedList linkedList = new LinkedList();
            for (q qVar : list) {
                qVar.field_isRead = 1;
            }
            linkedList.addAll(list);
            z.aeX().eo(linkedList);
        }
        AppMethodBeat.o(14221);
    }

    private static int aWF() {
        return jOz > 0 ? jOz - 1 : 0;
    }

    private void aWw() {
        AppMethodBeat.i(14205);
        this.jOp = (LinearLayout) findViewById(2131821814);
        this.jOq = (TextView) findViewById(2131821816);
        this.jOo = (ImageView) findViewById(2131821815);
        aWx();
        this.jOp.setOnClickListener(new 1(this));
        AppMethodBeat.o(14205);
    }

    private void aWy() {
        List drH;
        AppMethodBeat.i(14207);
        this.jOm = (StoryListView) findViewById(2131821806);
        this.jOm.addFooterView(aWz());
        this.jOm.addHeaderView(aWA());
        int i = jOz;
        long currentTimeMillis = System.currentTimeMillis();
        int i2 = com.tencent.mm.m.g.Nu().getInt("BizTimeLineStayTime", 180) * XWalkFeature.INTERFACE_GEO_LOCATION_PERMISSION;
        if (jOv == 0 || jOw == 0 || currentTimeMillis - jOv >= ((long) i2)) {
            this.jNw = false;
            drH = z.aeX().drH();
            aX(drH);
        } else {
            drH = z.aeX().mD(jOw);
            this.jNw = true;
        }
        ab.i("MicroMsg.BizTimeLineUI", "initListView stayTime %d %d/%d  orderFlag %d, keep %b", new Object[]{Integer.valueOf(i2), Long.valueOf(jOv), Long.valueOf(currentTimeMillis), Long.valueOf(jOw), Boolean.valueOf(this.jNw)});
        this.jOt = new a(this, drH, this.jNw, this.jNy, this.jNo);
        this.jNy.jOd = aWF();
        aWw();
        this.jOm.setAdapter(this.jOt);
        this.jOm.setFooterDividersEnabled(false);
        this.jOm.setOnScrollListener(new 13(this));
        this.jOm.setEmptyView(this.emptyTipTv);
        this.jOm.postDelayed(new 14(this, i, drH), 100);
        this.jOm.addOnLayoutChangeListener(new OnLayoutChangeListener() {
            public final void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) {
                AppMethodBeat.i(14199);
                BizTimeLineUI.this.jOt.dD(BizTimeLineUI.this.jOm.getFirstVisiblePosition(), BizTimeLineUI.this.jOm.getLastVisiblePosition());
                BizTimeLineUI.this.jOm.removeOnLayoutChangeListener(this);
                AppMethodBeat.o(14199);
            }
        });
        if (drH.size() < 10) {
            aWB();
        }
        z.aeY().a(this.jOD, Looper.getMainLooper());
        AppMethodBeat.o(14207);
    }

    static /* synthetic */ void a(BizTimeLineUI bizTimeLineUI, int i, int i2) {
        AppMethodBeat.i(14223);
        bizTimeLineUI.dE(i, (i + i2) - 1);
        AppMethodBeat.o(14223);
    }

    static /* synthetic */ void f(BizTimeLineUI bizTimeLineUI) {
        AppMethodBeat.i(14224);
        if (bizTimeLineUI.jOt == null || bizTimeLineUI.jOm == null) {
            AppMethodBeat.o(14224);
            return;
        }
        if (jOx != 0) {
            List list = bizTimeLineUI.jOt.iKa;
            int i = 0;
            while (i < list.size()) {
                q qVar = (q) list.get(i);
                if (qVar == null || qVar.field_orderFlag != jOx) {
                    i++;
                } else {
                    k.a(bizTimeLineUI.jOm, i + 1, jOy, false);
                    bizTimeLineUI.c(qVar);
                    ab.i("MicroMsg.BizTimeLineUI", "setListViewPosition %d", new Object[]{Integer.valueOf(i)});
                    AppMethodBeat.o(14224);
                    return;
                }
            }
        }
        AppMethodBeat.o(14224);
    }

    static /* synthetic */ void j(BizTimeLineUI bizTimeLineUI) {
        int i = 0;
        AppMethodBeat.i(14226);
        if (bizTimeLineUI.jOm == null || bizTimeLineUI.jOt == null) {
            AppMethodBeat.o(14226);
            return;
        }
        int firstVisiblePosition = bizTimeLineUI.jOm.getFirstVisiblePosition();
        int lastVisiblePosition = bizTimeLineUI.jOm.getLastVisiblePosition();
        bizTimeLineUI.dE(firstVisiblePosition, lastVisiblePosition);
        if (firstVisiblePosition > 0) {
            firstVisiblePosition--;
        } else {
            firstVisiblePosition = 0;
        }
        if (lastVisiblePosition > 0) {
            i = lastVisiblePosition - 1;
        }
        while (firstVisiblePosition <= i) {
            q sg = bizTimeLineUI.jOt.sg(firstVisiblePosition);
            if (sg != null) {
                bizTimeLineUI.jOt.FE(sg.field_talker);
                bizTimeLineUI.jNy.c(sg, firstVisiblePosition);
            }
            firstVisiblePosition++;
        }
        AppMethodBeat.o(14226);
    }

    static /* synthetic */ void m(BizTimeLineUI bizTimeLineUI) {
        AppMethodBeat.i(14227);
        if (!(bizTimeLineUI.jOt == null || bizTimeLineUI.jOm == null || bizTimeLineUI.jOt.getCount() <= 0)) {
            bizTimeLineUI.jOt.aWr();
            bizTimeLineUI.jOt.notifyDataSetChanged();
            bizTimeLineUI.jOI = true;
            al.n(new 8(bizTimeLineUI), 200);
            bizTimeLineUI.jOm.setSelection(0);
            bizTimeLineUI.jNy.si(6);
            if (bizTimeLineUI.jOt != null) {
                q aWq = bizTimeLineUI.jOt.aWq();
                if (aWq != null) {
                    s.mL(aWq.field_orderFlag);
                }
            }
            bizTimeLineUI.aWE();
        }
        AppMethodBeat.o(14227);
    }
}
