36 lines
1.3 KiB
Java
36 lines
1.3 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.ContentResolver;
|
||
|
import android.content.res.AssetFileDescriptor;
|
||
|
import android.net.Uri;
|
||
|
import com.airbnb.deeplinkdispatch.base.MatchIndex;
|
||
|
import java.io.FileNotFoundException;
|
||
|
import java.io.IOException;
|
||
|
|
||
|
/* renamed from: o.tFZ, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C17011tFZ extends SbQ<AssetFileDescriptor> {
|
||
|
@Override // o.SbQ
|
||
|
protected final /* synthetic */ void b(AssetFileDescriptor assetFileDescriptor) throws IOException {
|
||
|
assetFileDescriptor.close();
|
||
|
}
|
||
|
|
||
|
public C17011tFZ(ContentResolver contentResolver, Uri uri) {
|
||
|
super(contentResolver, uri);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC12232euN
|
||
|
public final Class<AssetFileDescriptor> c() {
|
||
|
return AssetFileDescriptor.class;
|
||
|
}
|
||
|
|
||
|
@Override // o.SbQ
|
||
|
protected final /* synthetic */ AssetFileDescriptor DK_(Uri uri, ContentResolver contentResolver) throws FileNotFoundException {
|
||
|
AssetFileDescriptor openAssetFileDescriptor = contentResolver.openAssetFileDescriptor(uri, MatchIndex.ROOT_VALUE);
|
||
|
if (openAssetFileDescriptor != null) {
|
||
|
return openAssetFileDescriptor;
|
||
|
}
|
||
|
throw new FileNotFoundException("FileDescriptor is null for: ".concat(String.valueOf(uri)));
|
||
|
}
|
||
|
}
|