package com.tencent.mm.plugin.sight.draft.ui;

import android.graphics.Bitmap;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.sight.draft.ui.c.b;
import com.tencent.mm.sdk.platformtools.al;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.sdk.platformtools.d;
import java.lang.ref.WeakReference;

final class c$a implements Runnable {
    String key;
    String path;
    boolean qzW;
    WeakReference<c> qzX;

    private c$a() {
    }

    /* synthetic */ c$a(byte b) {
        this();
    }

    public final void run() {
        AppMethodBeat.i(25022);
        Bitmap aml = d.aml(this.path);
        c cVar = (c) this.qzX.get();
        if (cVar != null) {
            if (!(bo.isNullOrNil(this.key) || aml == null)) {
                cVar.qzU.put(this.key, aml);
            }
            b bVar = new b((byte) 0);
            bVar.key = this.key;
            bVar.mQQ = aml;
            bVar.qzX = this.qzX;
            if (this.qzW) {
                al.d(bVar);
            }
        }
        AppMethodBeat.o(25022);
    }
}
