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

93 lines
3.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.material.sidesheet.SideSheetBehavior;
/* loaded from: classes2.dex */
public final class hqG extends AbstractC10711eMf {
private SideSheetBehavior<? extends View> d;
public hqG(SideSheetBehavior<? extends View> sideSheetBehavior) {
this.d = sideSheetBehavior;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC10711eMf
public final int a() {
return Math.max(0, (this.d.j - this.d.c) - this.d.g);
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC10711eMf
public final boolean a(View view, int i, boolean z) {
int a;
SideSheetBehavior<? extends View> sideSheetBehavior = this.d;
if (i == 3) {
a = sideSheetBehavior.i.a();
} else if (i == 5) {
a = sideSheetBehavior.i.b();
} else {
throw new IllegalArgumentException("Invalid state to get outer edge offset: ".concat(String.valueOf(i)));
}
OSb oSb = this.d.f;
return oSb != null && (!z ? !oSb.a(view, a, view.getTop()) : !oSb.c(a, view.getTop()));
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC10711eMf
public final <V extends View> int e(V v) {
return v.getLeft() - this.d.g;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC10711eMf
public final float c(int i) {
float f = this.d.j;
return (f - i) / (f - Math.max(0, (this.d.j - this.d.c) - this.d.g));
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC10711eMf
public final int LD_(ViewGroup.MarginLayoutParams marginLayoutParams) {
return marginLayoutParams.rightMargin;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC10711eMf
public final int d(View view, float f, float f2) {
if (f >= BitmapDescriptorFactory.HUE_RED) {
if (Math.abs(view.getRight() + (this.d.b * f)) <= 0.5f) {
if (f == BitmapDescriptorFactory.HUE_RED || Math.abs(f) <= Math.abs(f2)) {
int left = view.getLeft();
if (Math.abs(left - Math.max(0, (this.d.j - this.d.c) - this.d.g)) < Math.abs(left - this.d.j)) {
}
}
return 5;
}
if (Math.abs(f) <= Math.abs(f2) || f2 <= 500.0f) {
if (view.getLeft() > (this.d.j - Math.max(0, (this.d.j - this.d.c) - this.d.g)) / 2) {
}
}
return 5;
}
return 3;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC10711eMf
public final int b() {
return this.d.j;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC10711eMf
public final void LE_(ViewGroup.MarginLayoutParams marginLayoutParams, int i) {
int i2 = this.d.j;
if (i <= i2) {
marginLayoutParams.rightMargin = i2 - i;
}
}
}