- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
67 lines
1.4 KiB
Java
67 lines
1.4 KiB
Java
package com.applovin.impl.adview;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class e extends View {
|
|
protected float a;
|
|
protected final Context b;
|
|
|
|
public enum a {
|
|
WHITE_ON_BLACK(0),
|
|
WHITE_ON_TRANSPARENT(1),
|
|
INVISIBLE(2),
|
|
TRANSPARENT_SKIP(3);
|
|
|
|
private final int a;
|
|
|
|
a(int i) {
|
|
this.a = i;
|
|
}
|
|
|
|
public int b() {
|
|
return this.a;
|
|
}
|
|
}
|
|
|
|
public e(Context context) {
|
|
super(context);
|
|
this.a = 1.0f;
|
|
this.b = context;
|
|
}
|
|
|
|
public void a(int i) {
|
|
setViewScale(i / 30.0f);
|
|
ViewGroup.LayoutParams layoutParams = getLayoutParams();
|
|
if (layoutParams != null) {
|
|
layoutParams.width = (int) getSize();
|
|
layoutParams.height = (int) getSize();
|
|
}
|
|
}
|
|
|
|
public float getSize() {
|
|
return this.a * 30.0f;
|
|
}
|
|
|
|
public abstract a getStyle();
|
|
|
|
public void setViewScale(float f) {
|
|
this.a = f;
|
|
}
|
|
|
|
public static e a(a aVar, Context context) {
|
|
if (aVar.equals(a.INVISIBLE)) {
|
|
return new h(context);
|
|
}
|
|
if (aVar.equals(a.WHITE_ON_TRANSPARENT)) {
|
|
return new i(context);
|
|
}
|
|
if (aVar.equals(a.TRANSPARENT_SKIP)) {
|
|
return new j(context);
|
|
}
|
|
return new n(context);
|
|
}
|
|
}
|