59 lines
2.2 KiB
Java
59 lines
2.2 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.res.AssetManager;
|
||
|
import android.net.Uri;
|
||
|
import android.view.KeyEvent;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import android.widget.ExpandableListView;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import com.squareup.picasso.Picasso;
|
||
|
import java.io.IOException;
|
||
|
import java.io.InputStream;
|
||
|
import java.lang.reflect.Method;
|
||
|
import o.AbstractC12987fNZ;
|
||
|
|
||
|
/* renamed from: o.fNy, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C13012fNy extends AbstractC12987fNZ {
|
||
|
private final Context c;
|
||
|
private final Object d = new Object();
|
||
|
private AssetManager e;
|
||
|
|
||
|
public C13012fNy(Context context) {
|
||
|
this.c = context;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC12987fNZ
|
||
|
public final boolean d(fNW fnw) {
|
||
|
Uri uri = fnw.r;
|
||
|
return "file".equals(uri.getScheme()) && !uri.getPathSegments().isEmpty() && "android_asset".equals(uri.getPathSegments().get(0));
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC12987fNZ
|
||
|
public final AbstractC12987fNZ.Sts c(fNW fnw, int i) throws IOException {
|
||
|
if (this.e == null) {
|
||
|
synchronized (this.d) {
|
||
|
if (this.e == null) {
|
||
|
this.e = this.c.getAssets();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
try {
|
||
|
Object[] objArr = {this.e, fnw.r.toString().substring(22)};
|
||
|
Object obj = xzZ.y.get(-867414553);
|
||
|
if (obj == null) {
|
||
|
obj = ((Class) xzZ.c(KeyEvent.keyCodeFromString("") + 5, (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) ExpandableListView.getPackedPositionType(0L))).getMethod("NN_", AssetManager.class, String.class);
|
||
|
xzZ.y.put(-867414553, obj);
|
||
|
}
|
||
|
return new AbstractC12987fNZ.Sts(C15160gio.e((InputStream) ((Method) obj).invoke(null, objArr)), Picasso.HBt.DISK);
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause != null) {
|
||
|
throw cause;
|
||
|
}
|
||
|
throw th;
|
||
|
}
|
||
|
}
|
||
|
}
|