Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import A.a;
|
||||
import A.j;
|
||||
import G2.g;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.material.behavior.SwipeDismissBehavior;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class BaseTransientBottomBar$Behavior extends SwipeDismissBehavior<View> {
|
||||
public final a i;
|
||||
|
||||
public BaseTransientBottomBar$Behavior() {
|
||||
a aVar = new a(4, false);
|
||||
this.f5535f = Math.min(Math.max(BitmapDescriptorFactory.HUE_RED, 0.1f), 1.0f);
|
||||
this.f5536g = Math.min(Math.max(BitmapDescriptorFactory.HUE_RED, 0.6f), 1.0f);
|
||||
this.f5534e = 0;
|
||||
this.i = aVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.behavior.SwipeDismissBehavior, A.b
|
||||
public final boolean j(CoordinatorLayout coordinatorLayout, View view, MotionEvent motionEvent) {
|
||||
a aVar = this.i;
|
||||
aVar.getClass();
|
||||
int actionMasked = motionEvent.getActionMasked();
|
||||
if (actionMasked != 0) {
|
||||
if (actionMasked == 1 || actionMasked == 3) {
|
||||
j.h().n((g) aVar.f7b);
|
||||
}
|
||||
} else if (coordinatorLayout.o(view, (int) motionEvent.getX(), (int) motionEvent.getY())) {
|
||||
j.h().m((g) aVar.f7b);
|
||||
}
|
||||
return super.j(coordinatorLayout, view, motionEvent);
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.behavior.SwipeDismissBehavior
|
||||
public final boolean v(View view) {
|
||||
this.i.getClass();
|
||||
return view instanceof G2.j;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import G2.j;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class Snackbar$SnackbarLayout extends j {
|
||||
public Snackbar$SnackbarLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
@Override // G2.j, android.widget.FrameLayout, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
super.onMeasure(i, i4);
|
||||
int childCount = getChildCount();
|
||||
int measuredWidth = (getMeasuredWidth() - getPaddingLeft()) - getPaddingRight();
|
||||
for (int i5 = 0; i5 < childCount; i5++) {
|
||||
View childAt = getChildAt(i5);
|
||||
if (childAt.getLayoutParams().width == -1) {
|
||||
childAt.measure(View.MeasureSpec.makeMeasureSpec(measuredWidth, 1073741824), View.MeasureSpec.makeMeasureSpec(childAt.getMeasuredHeight(), 1073741824));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // G2.j, android.view.View
|
||||
public /* bridge */ /* synthetic */ void setBackground(Drawable drawable) {
|
||||
super.setBackground(drawable);
|
||||
}
|
||||
|
||||
@Override // G2.j, android.view.View
|
||||
public /* bridge */ /* synthetic */ void setBackgroundDrawable(Drawable drawable) {
|
||||
super.setBackgroundDrawable(drawable);
|
||||
}
|
||||
|
||||
@Override // G2.j, android.view.View
|
||||
public /* bridge */ /* synthetic */ void setBackgroundTintList(ColorStateList colorStateList) {
|
||||
super.setBackgroundTintList(colorStateList);
|
||||
}
|
||||
|
||||
@Override // G2.j, android.view.View
|
||||
public /* bridge */ /* synthetic */ void setBackgroundTintMode(PorterDuff.Mode mode) {
|
||||
super.setBackgroundTintMode(mode);
|
||||
}
|
||||
|
||||
@Override // G2.j, android.view.View
|
||||
public /* bridge */ /* synthetic */ void setLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
super.setLayoutParams(layoutParams);
|
||||
}
|
||||
|
||||
@Override // G2.j, android.view.View
|
||||
public /* bridge */ /* synthetic */ void setOnClickListener(View.OnClickListener onClickListener) {
|
||||
super.setOnClickListener(onClickListener);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import O.X;
|
||||
import a.AbstractC0106b;
|
||||
import android.animation.TimeInterpolator;
|
||||
import android.content.Context;
|
||||
import android.text.Layout;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.Button;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import com.adif.elcanomovil.R;
|
||||
import i2.AbstractC0396a;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class SnackbarContentLayout extends LinearLayout {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public TextView f5754a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public Button f5755b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final TimeInterpolator f5756c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public int f5757d;
|
||||
|
||||
public SnackbarContentLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.f5756c = AbstractC0106b.F(context, R.attr.motionEasingEmphasizedInterpolator, AbstractC0396a.f6816b);
|
||||
}
|
||||
|
||||
public final boolean a(int i, int i4, int i5) {
|
||||
boolean z3;
|
||||
if (i != getOrientation()) {
|
||||
setOrientation(i);
|
||||
z3 = true;
|
||||
} else {
|
||||
z3 = false;
|
||||
}
|
||||
if (this.f5754a.getPaddingTop() == i4 && this.f5754a.getPaddingBottom() == i5) {
|
||||
return z3;
|
||||
}
|
||||
TextView textView = this.f5754a;
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
if (textView.isPaddingRelative()) {
|
||||
textView.setPaddingRelative(textView.getPaddingStart(), i4, textView.getPaddingEnd(), i5);
|
||||
return true;
|
||||
}
|
||||
textView.setPadding(textView.getPaddingLeft(), i4, textView.getPaddingRight(), i5);
|
||||
return true;
|
||||
}
|
||||
|
||||
public Button getActionView() {
|
||||
return this.f5755b;
|
||||
}
|
||||
|
||||
public TextView getMessageView() {
|
||||
return this.f5754a;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onFinishInflate() {
|
||||
super.onFinishInflate();
|
||||
this.f5754a = (TextView) findViewById(R.id.snackbar_text);
|
||||
this.f5755b = (Button) findViewById(R.id.snackbar_action);
|
||||
}
|
||||
|
||||
@Override // android.widget.LinearLayout, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
super.onMeasure(i, i4);
|
||||
if (getOrientation() == 1) {
|
||||
return;
|
||||
}
|
||||
int dimensionPixelSize = getResources().getDimensionPixelSize(R.dimen.design_snackbar_padding_vertical_2lines);
|
||||
int dimensionPixelSize2 = getResources().getDimensionPixelSize(R.dimen.design_snackbar_padding_vertical);
|
||||
Layout layout = this.f5754a.getLayout();
|
||||
boolean z3 = layout != null && layout.getLineCount() > 1;
|
||||
if (!z3 || this.f5757d <= 0 || this.f5755b.getMeasuredWidth() <= this.f5757d) {
|
||||
if (!z3) {
|
||||
dimensionPixelSize = dimensionPixelSize2;
|
||||
}
|
||||
if (!a(0, dimensionPixelSize, dimensionPixelSize)) {
|
||||
return;
|
||||
}
|
||||
} else if (!a(1, dimensionPixelSize, dimensionPixelSize - dimensionPixelSize2)) {
|
||||
return;
|
||||
}
|
||||
super.onMeasure(i, i4);
|
||||
}
|
||||
|
||||
public void setMaxInlineActionWidth(int i) {
|
||||
this.f5757d = i;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user