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

94 lines
3.4 KiB
Java

package o;
import android.view.View;
import android.view.animation.Interpolator;
import androidx.core.view.ViewCompat;
import androidx.core.view.ViewPropertyAnimatorCompat;
import androidx.recyclerview.widget.RecyclerView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import org.bouncycastle.asn1.x509.DisplayText;
/* loaded from: classes2.dex */
abstract class UeZ extends RecyclerView.ZqN {
int a = DisplayText.DISPLAY_TEXT_MAXIMUM_SIZE;
Interpolator b;
private final int c;
protected RecyclerView.zJl d;
protected final RecyclerView e;
public UeZ(RecyclerView recyclerView, RecyclerView.zJl zjl) {
this.e = recyclerView;
this.d = zjl;
this.c = (int) ((recyclerView.getResources().getDisplayMetrics().density * 2.0f) + 0.5f);
}
/* JADX INFO: Access modifiers changed from: protected */
public final void c(View view, float f, float f2, float f3, float f4) {
float v = ViewCompat.v(view);
float translationX = view.getTranslationX();
float translationY = view.getTranslationY();
int width = view.getWidth() / 2;
int height = view.getHeight() / 2;
float abs = width > 0 ? Math.abs(translationX / width) : 0.0f;
float abs2 = height > 0 ? Math.abs(translationY / height) : 0.0f;
int min = (int) (this.a * Math.min(Math.max(Math.max(Math.max(Math.max(Math.max(BitmapDescriptorFactory.HUE_RED, abs), abs2), Math.abs(Math.max(f, f2) - 1.0f)), Math.abs(0.033333335f * f3)), Math.abs(f4 - 1.0f)), 1.0f));
if (min > 20) {
ViewPropertyAnimatorCompat b = ViewCompat.b(view);
view.setScaleX(f);
view.setScaleY(f2);
view.setRotation(f3);
view.setAlpha(f4);
ViewCompat.a(view, v + 1.0f);
b.d();
b.b(min);
b.tp_(this.b);
b.e(BitmapDescriptorFactory.HUE_RED);
b.j(BitmapDescriptorFactory.HUE_RED);
b.g(v);
b.b(1.0f);
b.a(BitmapDescriptorFactory.HUE_RED);
b.c(1.0f);
b.d(1.0f);
b.b(new InterfaceC15687hkl(this, v) { // from class: o.UeZ.1
private UeZ a;
private float e;
@Override // o.InterfaceC15687hkl
public final void b(View view2) {
}
@Override // o.InterfaceC15687hkl
public final void e(View view2) {
}
{
this.a = this;
this.e = v;
}
@Override // o.InterfaceC15687hkl
public final void d(View view2) {
ViewCompat.b(view2).b((InterfaceC15687hkl) null);
UeZ.d(view2, this.e);
if (view2.getParent() instanceof RecyclerView) {
ViewCompat.N((RecyclerView) view2.getParent());
}
}
});
b.c();
return;
}
d(view, v);
}
protected static void d(View view, float f) {
view.setTranslationX(BitmapDescriptorFactory.HUE_RED);
view.setTranslationY(BitmapDescriptorFactory.HUE_RED);
ViewCompat.a(view, f);
view.setAlpha(1.0f);
view.setRotation(BitmapDescriptorFactory.HUE_RED);
view.setScaleX(1.0f);
view.setScaleY(1.0f);
}
}