70 lines
2.1 KiB
Java
70 lines
2.1 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import android.os.Build;
|
|
import android.util.AttributeSet;
|
|
import android.widget.EdgeEffect;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class FBj {
|
|
public static EdgeEffect vi_(Context context, AttributeSet attributeSet) {
|
|
if (Build.VERSION.SDK_INT >= 31) {
|
|
return Sts.vn_(context, attributeSet);
|
|
}
|
|
return new EdgeEffect(context);
|
|
}
|
|
|
|
public static float vj_(EdgeEffect edgeEffect) {
|
|
return Build.VERSION.SDK_INT >= 31 ? Sts.vo_(edgeEffect) : BitmapDescriptorFactory.HUE_RED;
|
|
}
|
|
|
|
public static void vk_(EdgeEffect edgeEffect, float f, float f2) {
|
|
LWm.vm_(edgeEffect, f, f2);
|
|
}
|
|
|
|
public static float vl_(EdgeEffect edgeEffect, float f, float f2) {
|
|
if (Build.VERSION.SDK_INT >= 31) {
|
|
return Sts.vp_(edgeEffect, f, f2);
|
|
}
|
|
vk_(edgeEffect, f, f2);
|
|
return f;
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
static class Sts {
|
|
public static EdgeEffect vn_(Context context, AttributeSet attributeSet) {
|
|
try {
|
|
return new EdgeEffect(context, attributeSet);
|
|
} catch (Throwable unused) {
|
|
return new EdgeEffect(context);
|
|
}
|
|
}
|
|
|
|
public static float vp_(EdgeEffect edgeEffect, float f, float f2) {
|
|
try {
|
|
return edgeEffect.onPullDistance(f, f2);
|
|
} catch (Throwable unused) {
|
|
edgeEffect.onPull(f, f2);
|
|
return BitmapDescriptorFactory.HUE_RED;
|
|
}
|
|
}
|
|
|
|
public static float vo_(EdgeEffect edgeEffect) {
|
|
try {
|
|
return edgeEffect.getDistance();
|
|
} catch (Throwable unused) {
|
|
return BitmapDescriptorFactory.HUE_RED;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public static class LWm {
|
|
static void vm_(EdgeEffect edgeEffect, float f, float f2) {
|
|
edgeEffect.onPull(f, f2);
|
|
}
|
|
}
|
|
}
|