34 lines
1.5 KiB
Java
34 lines
1.5 KiB
Java
package com.discord.widgets.changelog;
|
|
|
|
import android.graphics.drawable.Animatable;
|
|
import c.f.g.c.c;
|
|
import com.discord.app.AppLog;
|
|
import com.discord.utilities.logging.Logger;
|
|
import com.facebook.drawee.view.SimpleDraweeView;
|
|
import d0.z.d.m;
|
|
/* compiled from: WidgetChangeLogSpecial.kt */
|
|
public final class WidgetChangeLogSpecial$thumbnailControllerListener$1 extends c<Object> {
|
|
public final /* synthetic */ WidgetChangeLogSpecial this$0;
|
|
|
|
public WidgetChangeLogSpecial$thumbnailControllerListener$1(WidgetChangeLogSpecial widgetChangeLogSpecial) {
|
|
this.this$0 = widgetChangeLogSpecial;
|
|
}
|
|
|
|
@Override // c.f.g.c.c, com.facebook.drawee.controller.ControllerListener
|
|
public void onFinalImageSet(String str, Object obj, Animatable animatable) {
|
|
super.onFinalImageSet(str, obj, animatable);
|
|
try {
|
|
SimpleDraweeView simpleDraweeView = WidgetChangeLogSpecial.access$getBinding$p(this.this$0).j;
|
|
m.checkNotNullExpressionValue(simpleDraweeView, "binding.changeLogVideoOverlay");
|
|
int i = 0;
|
|
if (!(animatable != null)) {
|
|
i = 8;
|
|
}
|
|
simpleDraweeView.setVisibility(i);
|
|
WidgetChangeLogSpecial.access$getBinding$p(this.this$0).j.setOnClickListener(new WidgetChangeLogSpecial$thumbnailControllerListener$1$onFinalImageSet$1(this));
|
|
} catch (Exception e) {
|
|
Logger.e$default(AppLog.g, "Failed to set changelog thumbnail image.", e, null, 4, null);
|
|
}
|
|
}
|
|
}
|