- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
95 lines
3.6 KiB
Java
95 lines
3.6 KiB
Java
package com.fyber.inneractive.sdk.player.controller;
|
|
|
|
import android.app.Dialog;
|
|
import android.content.Context;
|
|
import android.text.TextUtils;
|
|
import android.view.View;
|
|
import android.widget.Button;
|
|
import android.widget.TextView;
|
|
import com.fyber.inneractive.sdk.R;
|
|
import com.fyber.inneractive.sdk.util.t0;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class x {
|
|
public final Context a;
|
|
public final c b;
|
|
public final Dialog c;
|
|
public final com.fyber.inneractive.sdk.config.global.features.b d;
|
|
|
|
public class a implements View.OnClickListener {
|
|
public a() {
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
x.this.c.dismiss();
|
|
t tVar = (t) x.this.b;
|
|
tVar.b.f(tVar.a);
|
|
}
|
|
}
|
|
|
|
public class b implements View.OnClickListener {
|
|
public b() {
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
x.this.c.dismiss();
|
|
x.this.b.getClass();
|
|
}
|
|
}
|
|
|
|
public interface c {
|
|
}
|
|
|
|
public x(Context context, com.fyber.inneractive.sdk.config.global.features.b bVar, t tVar) {
|
|
this.a = context;
|
|
this.d = bVar;
|
|
this.b = tVar;
|
|
this.c = new Dialog(context);
|
|
a();
|
|
}
|
|
|
|
public final void a() {
|
|
this.c.requestWindowFeature(1);
|
|
this.c.setContentView(R.layout.ia_layout_skip_rewarded_dialog);
|
|
Button button = (Button) this.c.findViewById(R.id.ia_keep_watching_button);
|
|
Button button2 = (Button) this.c.findViewById(R.id.ia_close_button);
|
|
TextView textView = (TextView) this.c.findViewById(R.id.ia_skip_dialog_title_textview);
|
|
TextView textView2 = (TextView) this.c.findViewById(R.id.ia_skip_dialog_sub_title_textview);
|
|
String string = this.a.getString(R.string.ia_skip_rewarded_dialog_keep_watching);
|
|
String string2 = this.a.getString(R.string.ia_skip_rewarded_dialog_close_button);
|
|
String string3 = this.a.getString(R.string.ia_skip_rewarded_dialog_title);
|
|
String string4 = this.a.getString(R.string.ia_skip_rewarded_dialog_sub_title);
|
|
com.fyber.inneractive.sdk.config.global.features.b bVar = this.d;
|
|
if (bVar != null) {
|
|
String a2 = bVar.a("skip_reward_dialog_keep_watching_button", "KEEP WATCHING");
|
|
String trim = a2.trim().length() > 0 ? a2.trim() : "KEEP WATCHING";
|
|
if (!TextUtils.isEmpty(trim)) {
|
|
string = trim;
|
|
}
|
|
String a3 = this.d.a("skip_reward_dialog_close_button", "CLOSE");
|
|
String trim2 = a3.trim().length() > 0 ? a3.trim() : "CLOSE";
|
|
if (!TextUtils.isEmpty(trim2)) {
|
|
string2 = trim2;
|
|
}
|
|
String a4 = this.d.a("skip_reward_dialog_title", "Close Video?");
|
|
String trim3 = a4.trim().length() > 0 ? a4.trim() : "Close Video?";
|
|
if (!TextUtils.isEmpty(trim3)) {
|
|
string3 = trim3;
|
|
}
|
|
String a5 = this.d.a("skip_reward_dialog_sub_title", "Reward will not be received before video completion.");
|
|
String trim4 = a5.trim().length() > 0 ? a5.trim() : "Reward will not be received before video completion.";
|
|
if (!TextUtils.isEmpty(trim4)) {
|
|
string4 = trim4;
|
|
}
|
|
}
|
|
button.setText(t0.a(string, 13));
|
|
button2.setText(t0.a(string2, 13));
|
|
textView.setText(t0.a(string3, 20));
|
|
textView2.setText(t0.a(string4, 100));
|
|
button2.setOnClickListener(new a());
|
|
button.setOnClickListener(new b());
|
|
}
|
|
}
|