CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 AboutActivity.java 源代码,内容仅作参考
package com.darkempire78.opencalculator;
import android.content.Intent;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.darkempire78.opencalculator.AboutActivity;
import kotlin.Metadata;
import kotlin.jvm.internal.r;
import m2.w;
import n2.a;
import org.jetbrains.annotations.Nullable;
@Metadata(bv = {}, d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\b\u0010\tJ\b\u0010\u0003\u001a\u00020\u0002H\u0002J\u0012\u0010\u0007\u001a\u00020\u00062\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0014¨\u0006\n"}, d2 = {"Lcom/darkempire78/opencalculator/AboutActivity;", "Landroidx/appcompat/app/AppCompatActivity;", "", "g", "Landroid/os/Bundle;", "savedInstanceState", "Lkd/s;", "onCreate", "<init>", "()V", "app_debug"}, k = 1, mv = {1, 7, 1})
public final class AboutActivity extends AppCompatActivity {
private a f19046a;
private final boolean g() {
Integer num;
Configuration configuration;
boolean isNightModeActive;
if (Build.VERSION.SDK_INT >= 30) {
isNightModeActive = getResources().getConfiguration().isNightModeActive();
return isNightModeActive;
}
Resources resources = getResources();
if (resources != null && (configuration = resources.getConfiguration()) != null) {
num = Integer.valueOf(configuration.uiMode & 48);
} else {
num = null;
}
if (num != null && num.intValue() == 32) {
return true;
}
if (num != null && num.intValue() == 16) {
return false;
}
if (num == null) {
return true;
}
num.intValue();
return true;
}
public static final void h(AboutActivity this$0, View view) {
r.checkNotNullParameter(this$0, "this$0");
this$0.finish();
}
public static final void i(AboutActivity this$0, View view) {
r.checkNotNullParameter(this$0, "this$0");
this$0.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://www.paypal.me/ImDarkempire")));
}
public static final void j(AboutActivity this$0, View view) {
r.checkNotNullParameter(this$0, "this$0");
this$0.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://github.com/Darkempire78/OpenCalc")));
}
public static final void k(AboutActivity this$0, View view) {
r.checkNotNullParameter(this$0, "this$0");
this$0.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://discord.com/invite/sPvJmY7mcV")));
}
@Override
public void onCreate(@Nullable Bundle bundle) {
super.onCreate(bundle);
new Themes(this);
int darkMode = new MyPreferences(this).getDarkMode();
if (darkMode != -1) {
if (darkMode != 0) {
if (darkMode != 1) {
if (darkMode != 2) {
if (darkMode != 3) {
if (g()) {
setTheme(w.CalcDarkTheme);
} else {
setTheme(w.CalcAppTheme);
}
} else if (g()) {
setTheme(w.CalcMaterialYouDark);
} else {
setTheme(w.CalcMaterialYouLight);
}
} else {
setTheme(w.CalcAmoledTheme);
}
} else {
setTheme(w.CalcDarkTheme);
}
} else {
setTheme(w.CalcAppTheme);
}
} else if (g()) {
setTheme(w.CalcDarkTheme);
} else {
setTheme(w.CalcAppTheme);
}
a inflate = a.inflate(getLayoutInflater());
r.checkNotNullExpressionValue(inflate, "inflate(layoutInflater)");
this.f19046a = inflate;
a aVar = null;
if (inflate == null) {
r.throwUninitializedPropertyAccessException("binding");
inflate = null;
}
ConstraintLayout root = inflate.getRoot();
r.checkNotNullExpressionValue(root, "binding.root");
setContentView(root);
new Themes(this).checkTheme();
String str = 'v' + getPackageManager().getPackageInfo(getPackageName(), 1).versionName;
a aVar2 = this.f19046a;
if (aVar2 == null) {
r.throwUninitializedPropertyAccessException("binding");
aVar2 = null;
}
aVar2.f43545c.setText(str);
a aVar3 = this.f19046a;
if (aVar3 == null) {
r.throwUninitializedPropertyAccessException("binding");
aVar3 = null;
}
aVar3.f43546d.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
AboutActivity.h(AboutActivity.this, view);
}
});
a aVar4 = this.f19046a;
if (aVar4 == null) {
r.throwUninitializedPropertyAccessException("binding");
aVar4 = null;
}
aVar4.f43549g.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
AboutActivity.i(AboutActivity.this, view);
}
});
a aVar5 = this.f19046a;
if (aVar5 == null) {
r.throwUninitializedPropertyAccessException("binding");
aVar5 = null;
}
aVar5.f43548f.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
AboutActivity.j(AboutActivity.this, view);
}
});
a aVar6 = this.f19046a;
if (aVar6 == null) {
r.throwUninitializedPropertyAccessException("binding");
} else {
aVar = aVar6;
}
aVar.f43547e.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
AboutActivity.k(AboutActivity.this, view);
}
});
}
}