- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
88 lines
2.6 KiB
Java
88 lines
2.6 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import android.view.Menu;
|
|
import android.view.MenuItem;
|
|
import android.view.View;
|
|
import android.widget.Button;
|
|
import android.widget.TextView;
|
|
import androidx.core.view.ViewCompat;
|
|
import com.applovin.sdk.R;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class u6 extends Activity {
|
|
private w6 a;
|
|
private com.applovin.impl.sdk.j b;
|
|
private TextView c;
|
|
private Button d;
|
|
|
|
private boolean a() {
|
|
return (this.a == null || this.b == null) ? false : true;
|
|
}
|
|
|
|
public void a(w6 w6Var, com.applovin.impl.sdk.j jVar) {
|
|
this.a = w6Var;
|
|
this.b = jVar;
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
if (!a()) {
|
|
finish();
|
|
return;
|
|
}
|
|
setTitle(this.a.c() + " - " + this.a.d());
|
|
setContentView(R.layout.creative_debugger_displayed_ad_detail_activity);
|
|
b();
|
|
Button button = (Button) findViewById(R.id.report_ad_button);
|
|
this.d = button;
|
|
button.setOnClickListener(new View.OnClickListener() { // from class: com.applovin.impl.u6$$ExternalSyntheticLambda0
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
u6.this.a(view);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public boolean onCreateOptionsMenu(Menu menu) {
|
|
getMenuInflater().inflate(R.menu.creative_debugger_displayed_ad_activity_menu, menu);
|
|
return true;
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public boolean onOptionsItemSelected(MenuItem menuItem) {
|
|
if (!a()) {
|
|
finish();
|
|
return false;
|
|
}
|
|
if (R.id.action_share == menuItem.getItemId()) {
|
|
this.b.w().a(this.a, (Context) this, false);
|
|
return true;
|
|
}
|
|
return super.onOptionsItemSelected(menuItem);
|
|
}
|
|
|
|
private void b() {
|
|
qc qcVar = new qc();
|
|
qcVar.a(this.b.w().a(this.a));
|
|
String b = this.b.w().b(this.a.a());
|
|
if (b != null) {
|
|
qcVar.a("\nBid Response Preview:\n");
|
|
qcVar.a(b);
|
|
}
|
|
TextView textView = (TextView) findViewById(R.id.email_report_tv);
|
|
this.c = textView;
|
|
textView.setText(qcVar.toString());
|
|
this.c.setTextColor(ViewCompat.MEASURED_STATE_MASK);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(View view) {
|
|
this.b.w().a(this.a, (Context) this, true);
|
|
}
|
|
}
|