what-the-bank/sources/o/FiA.java

94 lines
2.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.text.TextUtils;
import java.io.File;
import java.io.FileNotFoundException;
import o.InterfaceC12232euN;
import o.SCe;
/* loaded from: classes.dex */
public final class FiA implements SCe<Uri, File> {
private final Context b;
@Override // o.SCe
public final /* synthetic */ boolean d(Uri uri) {
return C15604gzZ.DL_(uri);
}
@Override // o.SCe
public final /* synthetic */ SCe.IeS<File> e(Uri uri, int i, int i2, unA una) {
Uri uri2 = uri;
return new SCe.IeS<>(new xBn(uri2), new HBt(this.b, uri2));
}
public FiA(Context context) {
this.b = context;
}
/* loaded from: classes.dex */
static class HBt implements InterfaceC12232euN<File> {
private static final String[] e = {"_data"};
private final Uri a;
private final Context c;
@Override // o.InterfaceC12232euN
public final void a() {
}
@Override // o.InterfaceC12232euN
public final void e() {
}
HBt(Context context, Uri uri) {
this.c = context;
this.a = uri;
}
@Override // o.InterfaceC12232euN
public final void c(EnumC3495ayd enumC3495ayd, InterfaceC12232euN.IeS<? super File> ieS) {
Cursor query = this.c.getContentResolver().query(this.a, e, null, null, null);
if (query != null) {
try {
r0 = query.moveToFirst() ? query.getString(query.getColumnIndexOrThrow("_data")) : null;
} finally {
query.close();
}
}
if (TextUtils.isEmpty(r0)) {
StringBuilder sb = new StringBuilder("Failed to find file path for: ");
sb.append(this.a);
ieS.a((Exception) new FileNotFoundException(sb.toString()));
return;
}
ieS.a((InterfaceC12232euN.IeS<? super File>) new File(r0));
}
@Override // o.InterfaceC12232euN
public final Class<File> c() {
return File.class;
}
@Override // o.InterfaceC12232euN
public final pNW d() {
return pNW.LOCAL;
}
}
/* loaded from: classes.dex */
public static final class LWm implements rIx<Uri, File> {
private final Context b;
public LWm(Context context) {
this.b = context;
}
@Override // o.rIx
public final SCe<Uri, File> c(Vzp vzp) {
return new FiA(this.b);
}
}
}