Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,109 @@
package com.tapjoy;
import android.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.WindowInsets;
import android.view.WindowInsetsController;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import androidx.core.view.OnApplyWindowInsetsListener;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
/* loaded from: classes4.dex */
public class TJActivity extends Activity implements View.OnClickListener {
public RelativeLayout a = null;
public RelativeLayout.LayoutParams b;
public TJCloseButton c;
public ProgressBar d;
public static /* synthetic */ WindowInsetsCompat a(View view, WindowInsetsCompat windowInsetsCompat) {
return windowInsetsCompat;
}
public void a() {
}
@Override // android.app.Activity
public void onBackPressed() {
a();
}
@Override // android.view.View.OnClickListener
public void onClick(View view) {
onBackPressed();
}
@Override // android.app.Activity
public void onCreate(Bundle bundle) {
WindowInsetsController insetsController;
int statusBars;
int navigationBars;
requestWindowFeature(1);
super.onCreate(bundle);
int i = Build.VERSION.SDK_INT;
if (i >= 29) {
ViewCompat.setOnApplyWindowInsetsListener(getWindow().getDecorView(), new OnApplyWindowInsetsListener() { // from class: com.tapjoy.TJActivity$$ExternalSyntheticLambda0
@Override // androidx.core.view.OnApplyWindowInsetsListener
public final WindowInsetsCompat onApplyWindowInsets(View view, WindowInsetsCompat windowInsetsCompat) {
return TJActivity.a(view, windowInsetsCompat);
}
});
}
getWindow().setFlags(1024, 1024);
getWindow().setFlags(16777216, 16777216);
if (i >= 30) {
getWindow().setDecorFitsSystemWindows(false);
insetsController = getWindow().getInsetsController();
if (insetsController != null) {
statusBars = WindowInsets.Type.statusBars();
navigationBars = WindowInsets.Type.navigationBars();
insetsController.hide(statusBars | navigationBars);
insetsController.setSystemBarsBehavior(2);
}
} else {
getWindow().getDecorView().setSystemUiVisibility(4102);
}
getWindow().setBackgroundDrawable(new ColorDrawable(0));
this.b = new RelativeLayout.LayoutParams(-1, -1);
RelativeLayout relativeLayout = new RelativeLayout(this);
this.a = relativeLayout;
relativeLayout.setLayoutParams(this.b);
this.a.setBackgroundColor(0);
this.d = new ProgressBar(this, null, R.attr.progressBarStyleLarge);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, -2);
layoutParams.addRule(13);
this.d.setLayoutParams(layoutParams);
TJCloseButton tJCloseButton = new TJCloseButton(this);
this.c = tJCloseButton;
tJCloseButton.setOnClickListener(this);
}
public void setCloseButtonClickable(boolean z) {
this.c.setClickableRequested(z);
}
public void setCloseButtonVisibility(boolean z) {
if (z) {
this.c.setVisibility(0);
} else {
this.c.setVisibility(4);
}
}
public void setProgressSpinnerVisibility(boolean z) {
TapjoyUtil.runOnMainThread(new a(this, z));
}
public void showErrorDialog() {
if (isFinishing()) {
return;
}
new AlertDialog.Builder(this, R.style.Theme.Material.Light.Dialog.Alert).setMessage("An error occurred. Please try again later.").setPositiveButton("OK", new b(this)).create().show();
}
}