SD Maid v5.6.3版本的 MD5 值为:b283f6effbd880c54f4e4da72852de99
以下内容为反编译后的 UpgradeActivity.java 源代码,内容仅作参考
package eu.thedarken.sdm.main.ui.upgrades;
import a1.z;
import a5.a;
import a5.e;
import a5.h;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.a0;
import b5.b;
import e8.c;
import ed.f;
import eu.thedarken.sdm.R;
import eu.thedarken.sdm.main.ui.upgrades.account.AccountFragment;
import eu.thedarken.sdm.main.ui.upgrades.buy.BuyFragment;
import eu.thedarken.sdm.main.ui.upgrades.donation.DonationFragment;
import eu.thedarken.sdm.main.ui.upgrades.restore.RestoreFragment;
import eu.thedarken.sdm.main.ui.upgrades.upgrade.UpgradeFragment;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import p8.a;
import ta.f0;
import uc.n;
public final class UpgradeActivity extends n implements a.InterfaceC0190a, e.a<a.InterfaceC0190a, p8.a>, e5.a {
public static final int f4565z = 0;
public p8.a f4566x;
public b<Fragment> y;
public static final class a {
public static Intent a(Context context, boolean z4, c... cVarArr) {
qd.c.f("context", context);
qd.c.f("upgrades", cVarArr);
Intent intent = new Intent(context, UpgradeActivity.class);
Bundle bundle = new Bundle();
List<c> P = z.P(Arrays.copyOf(cVarArr, cVarArr.length));
c cVar = c.QUICKACCESS;
if (!P.isEmpty()) {
ArrayList<String> arrayList = new ArrayList<>();
for (c cVar2 : P) {
arrayList.add(cVar2.name());
}
bundle.putStringArrayList("arg.target.upgrades", arrayList);
}
bundle.putBoolean("forced", z4);
intent.putExtras(bundle);
return intent;
}
public static void b(Context context, c... cVarArr) {
qd.c.f("context", context);
qd.c.f("targetUpgrades", cVarArr);
Intent a10 = a(context, false, (c[]) Arrays.copyOf(cVarArr, cVarArr.length));
a10.addFlags(268435456);
context.startActivity(a10);
}
}
@Override
public final void A() {
if (Y0().C(R.id.content) instanceof BuyFragment) {
return;
}
Fragment V2 = Fragment.V2(this, BuyFragment.class.getName(), getIntent().getExtras());
a0 Y0 = Y0();
Y0.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(Y0);
aVar.f(R.id.content, V2, null);
aVar.h();
}
@Override
public final void A0(f8.c cVar) {
if (Y0().C(R.id.content) instanceof AccountFragment) {
return;
}
int i10 = AccountFragment.f4567f0;
Bundle bundle = new Bundle();
if (cVar != null) {
bundle.putParcelable("activationData", cVar);
}
Fragment V2 = Fragment.V2(this, AccountFragment.class.getName(), bundle);
qd.c.e("instantiate(context, Acc…:class.java.name, bundle)", V2);
a0 Y0 = Y0();
Y0.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(Y0);
aVar.f(R.id.content, V2, null);
aVar.h();
}
@Override
public final void Q(p8.a aVar) {
f8.c cVar;
ViewT viewt;
p8.a aVar2 = aVar;
qd.c.f("presenter", aVar2);
Intent intent = getIntent();
if (intent != null && "android.intent.action.VIEW".equals(intent.getAction()) && intent.getData() != null) {
String queryParameter = intent.getData().getQueryParameter("activationkey");
String queryParameter2 = intent.getData().getQueryParameter("action");
if (queryParameter != null && intent.getData().toString().contains("https://apps.darken.eu/inapp/eu.thedarken.sdm/licenses") && "register".equals(queryParameter2)) {
cVar = new f8.c(queryParameter);
aVar2.f8913c = cVar;
if (cVar == null) {
aVar2.f8914e = 1;
} else if (intent != null && qd.c.a("android.intent.action.VIEW", intent.getAction()) && (viewt = aVar2.f2277b) != 0) {
((a.InterfaceC0190a) viewt).Y();
f fVar = f.f3946a;
}
if (intent == null) {
ArrayList d = c.d(intent.getExtras());
HashSet<c> hashSet = aVar2.d;
hashSet.clear();
hashSet.addAll(d);
List list = c.f3843v;
qd.c.e("DONATIONS", list);
if (hashSet.containsAll(list)) {
aVar2.f8914e = 4;
return;
}
return;
}
return;
}
}
cVar = null;
aVar2.f8913c = cVar;
if (cVar == null) {
}
if (intent == null) {
}
}
@Override
public final b U() {
b<Fragment> bVar = this.y;
if (bVar != null) {
return bVar;
}
qd.c.k("fragmentComponentSource");
throw null;
}
@Override
public final void Y() {
Toast.makeText(this, "Invalid URL", 0).show();
}
@Override
public final void e1() {
if (Y0().C(R.id.content) instanceof UpgradeFragment) {
return;
}
Fragment V2 = Fragment.V2(this, UpgradeFragment.class.getName(), getIntent().getExtras());
a0 Y0 = Y0();
Y0.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(Y0);
aVar.f(R.id.content, V2, null);
aVar.h();
}
@Override
public final void onCreate(Bundle bundle) {
a.C0005a c0005a = new a.C0005a();
c0005a.a(new f0(this));
c0005a.f190b = new h(this);
c0005a.f189a = new b5.c(this);
c0005a.b(this);
super.onCreate(bundle);
setFinishOnTouchOutside(true);
setContentView(R.layout.extra_simple_content_frame_dialog_activity_wrapping);
}
@Override
public final void q0() {
if (Y0().C(R.id.content) instanceof RestoreFragment) {
return;
}
Fragment V2 = Fragment.V2(this, RestoreFragment.class.getName(), getIntent().getExtras());
a0 Y0 = Y0();
Y0.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(Y0);
aVar.f(R.id.content, V2, null);
aVar.h();
}
@Override
public final void r1(HashSet hashSet) {
qd.c.f("donations", hashSet);
if (Y0().C(R.id.content) instanceof DonationFragment) {
return;
}
Fragment V2 = Fragment.V2(this, DonationFragment.class.getName(), getIntent().getExtras());
a0 Y0 = Y0();
Y0.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(Y0);
aVar.f(R.id.content, V2, null);
aVar.h();
}
}