34 lines
1.4 KiB
Java
34 lines
1.4 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: WidgetChangeLog.kt */
|
||
|
public final class WidgetChangeLog$thumbnailControllerListener$1 extends c<Object> {
|
||
|
public final /* synthetic */ WidgetChangeLog this$0;
|
||
|
|
||
|
public WidgetChangeLog$thumbnailControllerListener$1(WidgetChangeLog widgetChangeLog) {
|
||
|
this.this$0 = widgetChangeLog;
|
||
|
}
|
||
|
|
||
|
@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 = WidgetChangeLog.access$getBinding$p(this.this$0).i;
|
||
|
m.checkNotNullExpressionValue(simpleDraweeView, "binding.changeLogVideoOverlay");
|
||
|
int i = 0;
|
||
|
if (!(animatable != null)) {
|
||
|
i = 8;
|
||
|
}
|
||
|
simpleDraweeView.setVisibility(i);
|
||
|
WidgetChangeLog.access$getBinding$p(this.this$0).i.setOnClickListener(new WidgetChangeLog$thumbnailControllerListener$1$onFinalImageSet$1(this));
|
||
|
} catch (Exception e) {
|
||
|
Logger.e$default(AppLog.g, "Failed to set changelog thumbnail image.", e, null, 4, null);
|
||
|
}
|
||
|
}
|
||
|
}
|