what-the-bank/sources/me/relex/circleindicator/SnackbarBehavior.java

41 lines
1.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package me.relex.circleindicator;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.material.snackbar.Snackbar;
import java.util.List;
/* loaded from: classes6.dex */
public class SnackbarBehavior extends CoordinatorLayout.Sts<BaseCircleIndicator> {
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
public final /* bridge */ /* synthetic */ boolean e(BaseCircleIndicator baseCircleIndicator, View view) {
return view instanceof Snackbar.SnackbarLayout;
}
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
public final /* synthetic */ boolean e(CoordinatorLayout coordinatorLayout, BaseCircleIndicator baseCircleIndicator, View view) {
BaseCircleIndicator baseCircleIndicator2 = baseCircleIndicator;
List<View> c = coordinatorLayout.c(baseCircleIndicator2);
int size = c.size();
float f = BitmapDescriptorFactory.HUE_RED;
for (int i = 0; i < size; i++) {
View view2 = c.get(i);
if ((view2 instanceof Snackbar.SnackbarLayout) && coordinatorLayout.c(baseCircleIndicator2, view2)) {
f = Math.min(f, view2.getTranslationY() - view2.getHeight());
}
}
baseCircleIndicator2.setTranslationY(f);
return true;
}
public SnackbarBehavior() {
}
public SnackbarBehavior(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
}