package com.tencent.mm.plugin.story.f;

import a.f.b.j;
import a.l;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.story.model.d.g;
import com.tencent.mm.plugin.story.model.j.a;
import com.tencent.mm.plugin.story.model.n;
import com.tencent.mm.sdk.platformtools.ab;
import java.util.ArrayList;

@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 d$a implements Runnable {
    final /* synthetic */ d rZf;
    final /* synthetic */ int rZg;
    final /* synthetic */ int rZh;

    d$a(d dVar, int i, int i2) {
        this.rZf = dVar;
        this.rZg = i;
        this.rZh = i2;
    }

    public final void run() {
        AppMethodBeat.i(109555);
        d.a(this.rZf, this.rZg);
        d.b(this.rZf, this.rZh);
        Object obj = ((ArrayList) d.a(this.rZf).get(this.rZg)).get(this.rZh);
        j.o(obj, "dateGalleryMap[row][column]");
        g gVar = (g) obj;
        a aVar = com.tencent.mm.plugin.story.model.j.rST;
        com.tencent.mm.plugin.story.h.j Fe = a.cxT().Fe(gVar.rVZ.cNE);
        a aVar2 = com.tencent.mm.plugin.story.model.j.rST;
        a.cxT().aba(gVar.rVZ.cNE + '_' + gVar.rVZ.fDG);
        if (Fe != null) {
            ab.i(d.e(this.rZf), "LogStory: deleteItem2 storyinfo " + gVar + " deleteItemRow " + d.b(this.rZf) + " deleteItemCol " + d.c(this.rZf) + " localid " + gVar.rVZ.cNE + ' ' + Fe.field_storyID);
            if (Fe.field_storyID == 0) {
                n.a aVar3 = n.rTi;
                n.a.EL(gVar.rVZ.cNE);
                d.f(this.rZf);
            } else if (!(d.b(this.rZf) == -1 || d.c(this.rZf) == -1)) {
                n.a aVar4 = n.rTi;
                n.a.D(Fe.field_storyID, gVar.rVZ.cNE);
            }
        }
        if (gVar.rVZ.cze()) {
            aVar = com.tencent.mm.plugin.story.model.j.rST;
            a.cno().post((Runnable) new 1(this, gVar));
        }
        AppMethodBeat.o(109555);
    }
}
