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

import android.graphics.Bitmap;
import android.widget.ImageView;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;

class l$7 implements l$a {
    final /* synthetic */ ImageView lvs;
    final /* synthetic */ int nXA;
    final /* synthetic */ int nXB;
    final /* synthetic */ boolean nXC;
    final /* synthetic */ l nXu;

    l$7(l lVar, ImageView imageView, int i, int i2, boolean z) {
        this.nXu = lVar;
        this.lvs = imageView;
        this.nXA = i;
        this.nXB = i2;
        this.nXC = z;
    }

    public final void a(final Bitmap bitmap, final int i, final String str) {
        AppMethodBeat.i(42310);
        if (bitmap == null || bitmap.isRecycled()) {
            ab.w("MicroMsg.LuckyMoneyEnvelopeLogic", "load error: %s, %s", new Object[]{Integer.valueOf(i), str});
            AppMethodBeat.o(42310);
            return;
        }
        l.Y(new Runnable() {
            public final void run() {
                AppMethodBeat.i(42309);
                if (i > 0) {
                    if (((Integer) l$7.this.lvs.getTag(2131820638)).intValue() == i) {
                        l$7.this.lvs.setImageBitmap(l.a(bitmap, l$7.this.nXA, l$7.this.nXB, l$7.this.nXC));
                        AppMethodBeat.o(42309);
                        return;
                    }
                    ab.w("MicroMsg.LuckyMoneyEnvelopeLogic", "pss subtype: %s, %s", new Object[]{Integer.valueOf(((Integer) l$7.this.lvs.getTag(2131820638)).intValue()), Integer.valueOf(i)});
                    AppMethodBeat.o(42309);
                    return;
                }
                String str = (String) l$7.this.lvs.getTag(2131820639);
                if (bo.isNullOrNil(str) || !str.equals(str)) {
                    ab.w("MicroMsg.LuckyMoneyEnvelopeLogic", "pss url: %s, %s", new Object[]{str, str});
                    AppMethodBeat.o(42309);
                    return;
                }
                l$7.this.lvs.setImageBitmap(l.a(bitmap, l$7.this.nXA, l$7.this.nXB, l$7.this.nXC));
                AppMethodBeat.o(42309);
            }
        });
        AppMethodBeat.o(42310);
    }
}
