正在查看: 24Six v66.1.24 应用的 ActivityStartup.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 24Six v66.1.24 应用的 ActivityStartup.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package app.tfs.activity;
import L0.v;
import Y0.l;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.lifecycle.Observer;
import app.tfs.R;
import app.tfs.activity.ActivityStartup;
import b0.k;
import b0.n;
import g.AbstractC0461d;
import g.C0458a;
import j.C0538d;
import kotlin.jvm.internal.g;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.m;
import l0.H;
import n.W3;
import n.Z3;
import r.C0690a;
import r.C0707s;
public final class ActivityStartup extends app.tfs.activity.c {
public static final a f403s = new a(null);
private C0538d f404r;
public static final class a {
public a(g gVar) {
this();
}
private a() {
}
}
public static final class b implements H {
b() {
}
public void a(int i2) {
ActivityStartup.this.C().a.setValue(Boolean.FALSE);
C0538d c0538d = ActivityStartup.this.f404r;
if (c0538d == null) {
m.w("viewBinding");
c0538d = null;
}
b0.m.f(c0538d.e.d, (String) null);
C0538d c0538d2 = ActivityStartup.this.f404r;
if (c0538d2 == null) {
m.w("viewBinding");
c0538d2 = null;
}
b0.m.f(c0538d2.e.e, (String) null);
ActivityStartup.this.N(Integer.valueOf(i2));
}
public void onError(Throwable th) {
m.e(th, "e");
ActivityStartup.this.C().a.setValue(Boolean.FALSE);
C0538d c0538d = ActivityStartup.this.f404r;
if (c0538d == null) {
m.w("viewBinding");
c0538d = null;
}
b0.m.f(c0538d.e.d, (String) null);
C0538d c0538d2 = ActivityStartup.this.f404r;
if (c0538d2 == null) {
m.w("viewBinding");
c0538d2 = null;
}
b0.m.f(c0538d2.e.e, (String) null);
k.f("ActivityStartup", th);
ActivityStartup.this.N(null);
}
public void onSubscribe(m0.c cVar) {
m.e(cVar, "d");
ActivityStartup.this.l(cVar);
ActivityStartup.this.C().a.setValue(Boolean.TRUE);
String string = ActivityStartup.this.getString(R.i.updating_24six);
m.d(string, "getString(...)");
if (AbstractC0461d.d.booleanValue()) {
string = ActivityStartup.this.getString(R.i.updating_solo);
}
String string2 = ActivityStartup.this.getString(R.i.great_things_are_coming_your_way);
m.d(string2, "getString(...)");
C0538d c0538d = ActivityStartup.this.f404r;
C0538d c0538d2 = null;
if (c0538d == null) {
m.w("viewBinding");
c0538d = null;
}
b0.m.f(c0538d.e.d, string);
C0538d c0538d3 = ActivityStartup.this.f404r;
if (c0538d3 == null) {
m.w("viewBinding");
} else {
c0538d2 = c0538d3;
}
b0.m.f(c0538d2.e.e, string2);
}
public void onSuccess(Object obj) {
a(((Number) obj).intValue());
}
}
static final class c implements Observer, h {
private final l a;
c(l lVar) {
m.e(lVar, "function");
this.a = lVar;
}
public final boolean equals(Object obj) {
if ((obj instanceof Observer) && (obj instanceof h)) {
return m.a(getFunctionDelegate(), ((h) obj).getFunctionDelegate());
}
return false;
}
public final L0.c getFunctionDelegate() {
return this.a;
}
public final int hashCode() {
return getFunctionDelegate().hashCode();
}
public final void onChanged(Object obj) {
this.a.invoke(obj);
}
}
public final void N(Integer num) {
Intent intent = getIntent();
boolean z2 = intent != null && intent.getBooleanExtra("skip_splash", false);
boolean z3 = num != null && num.intValue() == 2;
if (((String) C0458a.d.a()) == null && !z3) {
if (!z2) {
s(R.e.fragmentContainerViewSplash, new W3());
}
s(R.e.fragmentContainerViewStartup, new Z3());
return;
}
if (C0690a.f1699f.c() <= 0 || z3) {
Intent intent2 = new Intent((Context) this, (Class<?>) ActivityOfflineTooLong.class);
if (num != null) {
intent2.putExtra("fromMigrationResult", num.intValue());
}
startActivity(intent2);
} else {
Intent intent3 = new Intent((Context) this, (Class<?>) C0707s.D());
if (getIntent() != null) {
intent3.putExtras(getIntent());
}
startActivity(intent3);
}
finish();
}
public static final v O(ActivityStartup activityStartup, Boolean bool) {
C0538d c0538d = null;
if (n.k(bool)) {
C0538d c0538d2 = activityStartup.f404r;
if (c0538d2 == null) {
m.w("viewBinding");
} else {
c0538d = c0538d2;
}
c0538d.e.b.i();
} else {
C0538d c0538d3 = activityStartup.f404r;
if (c0538d3 == null) {
m.w("viewBinding");
} else {
c0538d = c0538d3;
}
c0538d.e.b.e();
}
return v.a;
}
protected boolean i() {
return q(R.e.fragmentContainerViewSplash) != null ? AbstractC0461d.d.booleanValue() || AbstractC0461d.b.booleanValue() : super.i();
}
@Override
protected boolean j() {
return i();
}
public String m() {
return "ActivityStartup";
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
C0538d c2 = C0538d.c(getLayoutInflater());
this.f404r = c2;
if (c2 == null) {
m.w("viewBinding");
c2 = null;
}
setContentView(c2.getRoot());
C().a.observe(this, new c(new l() {
public final Object invoke(Object obj) {
L0.v O;
O = ActivityStartup.O(ActivityStartup.this, (Boolean) obj);
return O;
}
}));
q.b bVar = new q.b(this);
if (bVar.d()) {
bVar.e().i(J0.a.d()).g(k0.c.d()).b(new b());
} else {
N(null);
}
}
public int r() {
return R.e.fragmentContainerViewStartup;
}
}