package com.tencent.mm.plugin.appbrand.ui.collection;

import a.f.b.j;
import a.l;
import android.support.v4.app.FragmentActivity;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.ui.a.b;
import com.tencent.mm.plugin.appbrand.ui.collection.AppBrandCollectionDisplayVerticalList.g;
import java.util.List;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002¨\u0006\u0003"}, dWq = {"<anonymous>", "", "run", "com/tencent/mm/plugin/appbrand/ui/collection/AppBrandCollectionDisplayVerticalList$refreshDataList$workerRunner$1$1$1"})
final class AppBrandCollectionDisplayVerticalList$g$a implements Runnable {
    final /* synthetic */ List iLl;
    final /* synthetic */ g iLm;

    AppBrandCollectionDisplayVerticalList$g$a(List list, g gVar) {
        this.iLl = list;
        this.iLm = gVar;
    }

    public final void run() {
        AppMethodBeat.i(135014);
        if (this.iLl.isEmpty()) {
            FragmentActivity activity = this.iLm.iLg.getActivity();
            if (!(activity instanceof b)) {
                activity = null;
            }
            b bVar = (b) activity;
            if (bVar != null) {
                bVar.eE(false);
            }
        } else {
            k b = this.iLm.iLg.iKY;
            if (b == null) {
                j.dWJ();
            }
            b.aO(this.iLl);
            if (this.iLm.iLj) {
                b = this.iLm.iLg.iKY;
                if (b == null) {
                    j.dWJ();
                }
                b.ar(0, this.iLl.size());
            } else {
                b = this.iLm.iLg.iKY;
                if (b == null) {
                    j.dWJ();
                }
                b.at(0, this.iLl.size());
            }
        }
        Runnable runnable = (Runnable) this.iLm.iLk.invoke();
        if (runnable != null) {
            runnable.run();
            AppMethodBeat.o(135014);
            return;
        }
        AppMethodBeat.o(135014);
    }
}
