package com.tencent.mm.plugin.appbrand.appusage;

import a.a.v;
import a.f.b.j;
import a.l;
import android.support.v7.h.c;
import android.support.v7.h.c.a;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.appbrand.app.f;
import com.tencent.mm.plugin.appbrand.appusage.f.b;
import com.tencent.mm.sdk.platformtools.ab;
import java.util.List;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, dWq = {"<anonymous>", "", "run"})
final class f$e implements Runnable {
    final /* synthetic */ f gYX;
    final /* synthetic */ List gYY;
    final /* synthetic */ b gYZ;

    f$e(f fVar, List list, b bVar) {
        this.gYX = fVar;
        this.gYY = list;
        this.gYZ = bVar;
    }

    public final void run() {
        AppMethodBeat.i(134514);
        List a = f.a(this.gYX);
        if (a == null) {
            a = (List) v.AUP;
        }
        c.b a2 = c.a((a) new ab(a, this.gYY), true);
        c cVar = (c) g.K(c.class);
        j.o(a2, "diff");
        List m = a.a.j.m(a);
        a = this.gYY;
        if (a == null) {
            j.dWJ();
        }
        boolean a3 = cVar.a(a2, m, a.a.j.m(a), (c.b) this.gYZ);
        ab.i("MicroMsg.AppBrandCollectionStorageExport[collection]", "[collection] reorderWithCallback, changed = ".concat(String.valueOf(a3)));
        if (a3) {
            ((s) f.E(s.class)).a(LocalUsageInfo.class, this.gYY, null);
        }
        f.b(this.gYX).set(false);
        ab.i("MicroMsg.AppBrandCollectionStorageExport[collection]", "[collection] reorderWithCallback, before run callback");
        b bVar = this.gYZ;
        if (bVar != null) {
            bVar.axa();
            AppMethodBeat.o(134514);
            return;
        }
        AppMethodBeat.o(134514);
    }
}
