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

66 lines
2.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.res.AssetFileDescriptor;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import android.text.TextUtils;
import java.io.File;
import java.io.InputStream;
import o.SCe;
/* loaded from: classes.dex */
public final class sCx<Data> implements SCe<String, Data> {
private final SCe<Uri, Data> d;
@Override // o.SCe
public final /* bridge */ /* synthetic */ boolean d(String str) {
return true;
}
@Override // o.SCe
public final /* synthetic */ SCe.IeS e(String str, int i, int i2, unA una) {
Uri fromFile;
String str2 = str;
if (TextUtils.isEmpty(str2)) {
fromFile = null;
} else if (str2.charAt(0) != '/') {
Uri parse = Uri.parse(str2);
fromFile = parse.getScheme() == null ? Uri.fromFile(new File(str2)) : parse;
} else {
fromFile = Uri.fromFile(new File(str2));
}
if (fromFile == null || !this.d.d(fromFile)) {
return null;
}
return this.d.e(fromFile, i, i2, una);
}
public sCx(SCe<Uri, Data> sCe) {
this.d = sCe;
}
/* loaded from: classes.dex */
public static class HBt implements rIx<String, InputStream> {
@Override // o.rIx
public final SCe<String, InputStream> c(Vzp vzp) {
return new sCx(vzp.b(Uri.class, InputStream.class));
}
}
/* loaded from: classes.dex */
public static class LWm implements rIx<String, ParcelFileDescriptor> {
@Override // o.rIx
public final SCe<String, ParcelFileDescriptor> c(Vzp vzp) {
return new sCx(vzp.b(Uri.class, ParcelFileDescriptor.class));
}
}
/* loaded from: classes.dex */
public static final class IeS implements rIx<String, AssetFileDescriptor> {
@Override // o.rIx
public final SCe<String, AssetFileDescriptor> c(Vzp vzp) {
return new sCx(vzp.b(Uri.class, AssetFileDescriptor.class));
}
}
}