84 lines
3.1 KiB
Java
84 lines
3.1 KiB
Java
package o;
|
|
|
|
import android.content.ContentResolver;
|
|
import android.content.UriMatcher;
|
|
import android.net.Uri;
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class KQI extends SbQ<InputStream> {
|
|
private static final UriMatcher d;
|
|
|
|
@Override // o.SbQ
|
|
protected final /* synthetic */ void b(InputStream inputStream) throws IOException {
|
|
inputStream.close();
|
|
}
|
|
|
|
static {
|
|
UriMatcher uriMatcher = new UriMatcher(-1);
|
|
d = uriMatcher;
|
|
uriMatcher.addURI("com.android.contacts", "contacts/lookup/*/#", 1);
|
|
uriMatcher.addURI("com.android.contacts", "contacts/lookup/*", 1);
|
|
uriMatcher.addURI("com.android.contacts", "contacts/#/photo", 2);
|
|
uriMatcher.addURI("com.android.contacts", "contacts/#", 3);
|
|
uriMatcher.addURI("com.android.contacts", "contacts/#/display_photo", 4);
|
|
uriMatcher.addURI("com.android.contacts", "phone_lookup/*", 5);
|
|
}
|
|
|
|
public KQI(ContentResolver contentResolver, Uri uri) {
|
|
super(contentResolver, uri);
|
|
}
|
|
|
|
@Override // o.InterfaceC12232euN
|
|
public final Class<InputStream> c() {
|
|
return InputStream.class;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:11:0x0026 */
|
|
/* JADX WARN: Removed duplicated region for block: B:9:0x0025 A[RETURN] */
|
|
@Override // o.SbQ
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
protected final /* synthetic */ java.io.InputStream DK_(android.net.Uri r4, android.content.ContentResolver r5) throws java.io.FileNotFoundException {
|
|
/*
|
|
r3 = this;
|
|
android.content.UriMatcher r0 = o.KQI.d
|
|
int r0 = r0.match(r4)
|
|
r1 = 1
|
|
if (r0 == r1) goto L19
|
|
r2 = 3
|
|
if (r0 == r2) goto L14
|
|
r2 = 5
|
|
if (r0 == r2) goto L19
|
|
java.io.InputStream r5 = r5.openInputStream(r4)
|
|
goto L23
|
|
L14:
|
|
java.io.InputStream r5 = android.provider.ContactsContract.Contacts.openContactPhotoInputStream(r5, r4, r1)
|
|
goto L23
|
|
L19:
|
|
android.net.Uri r0 = android.provider.ContactsContract.Contacts.lookupContact(r5, r4)
|
|
if (r0 == 0) goto L36
|
|
java.io.InputStream r5 = android.provider.ContactsContract.Contacts.openContactPhotoInputStream(r5, r0, r1)
|
|
L23:
|
|
if (r5 == 0) goto L26
|
|
return r5
|
|
L26:
|
|
java.io.FileNotFoundException r5 = new java.io.FileNotFoundException
|
|
java.lang.String r0 = "InputStream is null for "
|
|
java.lang.String r4 = java.lang.String.valueOf(r4)
|
|
java.lang.String r4 = r0.concat(r4)
|
|
r5.<init>(r4)
|
|
throw r5
|
|
L36:
|
|
java.io.FileNotFoundException r4 = new java.io.FileNotFoundException
|
|
java.lang.String r5 = "Contact cannot be found"
|
|
r4.<init>(r5)
|
|
throw r4
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.KQI.DK_(android.net.Uri, android.content.ContentResolver):java.lang.Object");
|
|
}
|
|
}
|