- 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
68 lines
2.4 KiB
Java
68 lines
2.4 KiB
Java
package com.ironsource;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Color;
|
|
import android.graphics.Typeface;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.graphics.drawable.GradientDrawable;
|
|
import android.view.View;
|
|
import android.widget.ImageView;
|
|
import android.widget.TextView;
|
|
import kotlin.Result;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class lo {
|
|
public static final a a = new a(null);
|
|
|
|
@SourceDebugExtension({"SMAP\nPrivacyIconView.kt\nKotlin\n*S Kotlin\n*F\n+ 1 PrivacyIconView.kt\ncom/ironsource/sdk/nativeAd/PrivacyIconView$Companion\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,47:1\n1#2:48\n*E\n"})
|
|
public static final class a {
|
|
private a() {
|
|
}
|
|
|
|
public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private static final GradientDrawable a() {
|
|
GradientDrawable gradientDrawable = new GradientDrawable();
|
|
gradientDrawable.setShape(1);
|
|
gradientDrawable.setColor(Color.parseColor("#000000"));
|
|
return gradientDrawable;
|
|
}
|
|
|
|
private final View a(Context context) {
|
|
TextView textView = new TextView(context);
|
|
textView.setText(com.mbridge.msdk.foundation.same.report.i.a);
|
|
textView.setTypeface(Typeface.DEFAULT_BOLD);
|
|
textView.setTextSize(15.0f);
|
|
textView.setBackground(a());
|
|
textView.setAlpha(0.2f);
|
|
textView.setPadding(21, 0, 21, 0);
|
|
textView.setTextColor(Color.parseColor("#FFFFFF"));
|
|
return textView;
|
|
}
|
|
|
|
public final View a(Context context, String str, sg imageLoader) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(imageLoader, "imageLoader");
|
|
if (str == null) {
|
|
return a(context);
|
|
}
|
|
Object a = imageLoader.a(str);
|
|
if (Result.m4064isFailureimpl(a)) {
|
|
a = null;
|
|
}
|
|
Drawable drawable = (Drawable) a;
|
|
if (drawable == null) {
|
|
return a(context);
|
|
}
|
|
ImageView imageView = new ImageView(context);
|
|
imageView.setImageDrawable(drawable);
|
|
return imageView;
|
|
}
|
|
}
|
|
}
|