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

46 lines
1.7 KiB
Java

package o;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import o.C11777elj;
/* loaded from: classes3.dex */
public final class ZGg {
public float b = BitmapDescriptorFactory.HUE_RED;
float c = 10.0f;
float a = BitmapDescriptorFactory.HUE_RED;
public int e = 0;
public int d = -939524096;
ZGg() {
}
public static ZGg OC_(Context context, AttributeSet attributeSet) {
ZGg zGg = new ZGg();
if (attributeSet == null) {
return zGg;
}
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C11777elj.LWm.CropView);
int i = C11777elj.LWm.CropView_cropviewViewportRatio;
float f = BitmapDescriptorFactory.HUE_RED;
float f2 = obtainStyledAttributes.getFloat(i, BitmapDescriptorFactory.HUE_RED);
if (f2 <= BitmapDescriptorFactory.HUE_RED) {
f2 = 0.0f;
}
zGg.b = f2;
float f3 = obtainStyledAttributes.getFloat(C11777elj.LWm.CropView_cropviewMaxScale, 10.0f);
zGg.c = f3 > BitmapDescriptorFactory.HUE_RED ? f3 : 10.0f;
float f4 = obtainStyledAttributes.getFloat(C11777elj.LWm.CropView_cropviewMinScale, BitmapDescriptorFactory.HUE_RED);
if (f4 > BitmapDescriptorFactory.HUE_RED) {
f = f4;
}
zGg.a = f;
zGg.d = obtainStyledAttributes.getColor(C11777elj.LWm.CropView_cropviewViewportOverlayColor, -939524096);
zGg.e = obtainStyledAttributes.getDimensionPixelSize(C11777elj.LWm.CropView_cropviewViewportOverlayPadding, 0);
obtainStyledAttributes.recycle();
return zGg;
}
}