正在查看: Releam v2.13.2 应用的 LaunchActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Releam v2.13.2 应用的 LaunchActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.solaflashapps.releam.ui.launch;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import com.solaflashapps.releam.ui.language.LanguagesSettingsActivity;
import com.solaflashapps.releam.ui.words.learn.WordActivity;
import d.n;
import d9.i;
import java.util.Iterator;
import java.util.List;
import l7.b;
import n7.c;
import s9.a;
public final class LaunchActivity extends n {
public static final int f3954i0 = 0;
@Override
public final void onCreate(Bundle bundle) {
i G;
Object obj;
super.onCreate(bundle);
if (!b.i().getBoolean("com.releam.AppPreferenceManager.SECTIONS_RESTORED", false)) {
c.Q();
SharedPreferences i10 = b.i();
a.m(i10, "<get-sharedPreferences>(...)");
SharedPreferences.Editor edit = i10.edit();
a.m(edit, "editor");
edit.putBoolean("com.releam.AppPreferenceManager.SECTIONS_RESTORED", true);
edit.apply();
}
if (b.h() == null) {
d9.a aVar = LanguagesSettingsActivity.f3944r0;
startActivity(new Intent(this, (Class<?>) LanguagesSettingsActivity.class).addFlags(67108864));
} else {
Integer valueOf = Integer.valueOf(b.i().getInt("com.releam.AppPreferenceManager.LAST_SELECTED_TOPIC", -1));
Object obj2 = null;
if (!(valueOf.intValue() != -1)) {
valueOf = null;
}
Intent intent = getIntent();
Integer valueOf2 = intent != null ? Integer.valueOf(intent.getIntExtra("EXTRA_TARGET_TOPIC_ID", -1)) : null;
if (!(valueOf2 == null || valueOf2.intValue() != -1)) {
valueOf2 = null;
}
if (valueOf2 == null || (G = c.G(valueOf2.intValue())) == null) {
G = valueOf != null ? c.G(valueOf.intValue()) : null;
if (G == null) {
Iterator it = c.D().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
} else {
obj = it.next();
if (((i) obj).Z) {
break;
}
}
}
G = (i) obj;
}
}
if (G == null) {
List list = w9.a.f10606e;
if (list == null) {
a.t0("languages");
throw null;
}
Iterator it2 = list.iterator();
while (true) {
if (!it2.hasNext()) {
break;
}
Object next = it2.next();
if (a.c(((d9.a) next).f4365i, "en")) {
obj2 = next;
break;
}
}
d9.a aVar2 = (d9.a) obj2;
if (aVar2 == null) {
throw new IllegalStateException("Couldn't find en language to create a default topic");
}
c.M(aVar2);
G = c.F(aVar2);
if (G == null) {
throw new IllegalStateException("Couldn't create default topic for " + aVar2.f4365i);
}
}
int i11 = WordActivity.f4014v0;
startActivity(mb.a.m(this, G, valueOf2 != null));
}
finish();
}
}