discord-jadx/app/src/main/java/b/b/a/d/k.java

61 lines
2.4 KiB
Java
Raw Normal View History

2021-12-17 21:59:34 +00:00
package b.b.a.d;
2021-07-24 02:37:17 +00:00
import android.content.ContentResolver;
import android.graphics.Bitmap;
import android.net.Uri;
2021-11-02 06:38:17 +00:00
import android.util.Size;
2021-12-17 21:59:34 +00:00
import b.b.a.d.i;
2021-11-02 06:38:17 +00:00
import d0.l;
import d0.w.h.c;
import d0.w.i.a.e;
import d0.z.d.m;
2021-07-24 02:37:17 +00:00
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
/* compiled from: ThumbnailViewHolder.kt */
2021-11-02 06:38:17 +00:00
@e(c = "com.lytefast.flexinput.adapters.ThumbnailViewHolder$ThumbnailBitmapGenerator$getThumbnailQ$2", f = "ThumbnailViewHolder.kt", l = {}, m = "invokeSuspend")
public final class k extends d0.w.i.a.k implements Function2<CoroutineScope, Continuation<? super Bitmap>, Object> {
public final /* synthetic */ ContentResolver $contentResolver;
2021-07-24 02:37:17 +00:00
public final /* synthetic */ Uri $uri;
public int label;
2021-11-02 06:38:17 +00:00
public final /* synthetic */ i.b this$0;
2021-07-24 02:37:17 +00:00
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
2021-11-02 06:38:17 +00:00
public k(i.b bVar, ContentResolver contentResolver, Uri uri, Continuation continuation) {
2021-07-24 02:37:17 +00:00
super(2, continuation);
this.this$0 = bVar;
2021-11-02 06:38:17 +00:00
this.$contentResolver = contentResolver;
2021-07-24 02:37:17 +00:00
this.$uri = uri;
}
2021-11-02 06:38:17 +00:00
@Override // d0.w.i.a.a
2021-07-24 02:37:17 +00:00
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
m.checkNotNullParameter(continuation, "completion");
2021-11-02 06:38:17 +00:00
return new k(this.this$0, this.$contentResolver, this.$uri, continuation);
2021-07-24 02:37:17 +00:00
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
2021-11-02 06:38:17 +00:00
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Bitmap> continuation) {
Continuation<? super Bitmap> continuation2 = continuation;
2021-07-24 02:37:17 +00:00
m.checkNotNullParameter(continuation2, "completion");
2021-11-02 06:38:17 +00:00
return new k(this.this$0, this.$contentResolver, this.$uri, continuation2).invokeSuspend(Unit.a);
2021-07-24 02:37:17 +00:00
}
2021-11-02 06:38:17 +00:00
@Override // d0.w.i.a.a
2021-07-24 02:37:17 +00:00
public final Object invokeSuspend(Object obj) {
2021-11-02 06:38:17 +00:00
c.getCOROUTINE_SUSPENDED();
if (this.label == 0) {
2021-07-24 02:37:17 +00:00
l.throwOnFailure(obj);
2021-11-02 06:38:17 +00:00
try {
2022-01-21 08:24:42 +00:00
return this.$contentResolver.loadThumbnail(this.$uri, new Size(i.j, i.k), this.this$0.f316b);
2021-11-02 06:38:17 +00:00
} catch (Exception unused) {
return null;
2021-07-24 02:37:17 +00:00
}
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
}
}