package com.tencent.mm.plugin.gallery.model;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.a.f.b;
import com.tencent.mm.plugin.gallery.model.d.a;
import com.tencent.mm.sdk.platformtools.ab;

class d$3 implements b<String, a> {
    final /* synthetic */ d mNI;

    d$3(d dVar) {
        this.mNI = dVar;
    }

    public final /* synthetic */ void c(Object obj, Object obj2, Object obj3) {
        AppMethodBeat.i(21242);
        String str = (String) obj;
        a aVar = (a) obj2;
        if (aVar == null) {
            ab.d("MicroMsg.GalleryCache", "weakReference is null");
            AppMethodBeat.o(21242);
        } else if (aVar.bitmap == null) {
            ab.d("MicroMsg.GalleryCache", "weakReference getbitmap is null");
            AppMethodBeat.o(21242);
        } else {
            ab.i("MicroMsg.GalleryCache", "bitmap recycle %s", new Object[]{aVar.bitmap.toString()});
            aVar.bitmap.recycle();
            ab.d("MicroMsg.GalleryCache", "gallery remove ", new Object[]{str});
            AppMethodBeat.o(21242);
        }
    }
}
