package com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.AdLandingPageComponent.component;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.f.a;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;

class e$1 implements a {
    final /* synthetic */ e qZi;

    e$1(e eVar) {
        this.qZi = eVar;
    }

    public final void cpu() {
        AppMethodBeat.i(37049);
        this.qZi.startLoading();
        AppMethodBeat.o(37049);
    }

    public final void cmD() {
        AppMethodBeat.i(37050);
        this.qZi.stopLoading();
        AppMethodBeat.o(37050);
    }

    public final void YJ(String str) {
        AppMethodBeat.i(37051);
        try {
            this.qZi.stopLoading();
            Bitmap decodeFile = BitmapFactory.decodeFile(str);
            e eVar = this.qZi;
            if (decodeFile == null) {
                ab.e("AdLandingImageComp", "when set image the bmp is null!");
                AppMethodBeat.o(37051);
            } else if (eVar.cAw == null) {
                ab.e("AdLandingImageComp", "when set image the imageView is null!");
                AppMethodBeat.o(37051);
            } else if (decodeFile.getWidth() == 0) {
                ab.e("AdLandingImageComp", "when set image the bmp.getWidth is 0!");
                AppMethodBeat.o(37051);
            } else {
                eVar.cAw.setImageBitmap(decodeFile);
                eVar.progressBar.setVisibility(8);
                AppMethodBeat.o(37051);
            }
        } catch (Exception e) {
            ab.e("AdLandingImageComp", "%s" + bo.l(e));
            AppMethodBeat.o(37051);
        }
    }
}
