正在查看: Hopscotch v9.7.2 应用的 ProfileItemBaseActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hopscotch v9.7.2 应用的 ProfileItemBaseActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package in.hopscotch.android.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata
public final class ProfileItemBaseActivity extends androidx.appcompat.app.i {
@NotNull
public static final a i = new a(null);
private in.hopscotch.android.databinding.h2 binding;
private String from;
private String value;
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private a() {
}
}
public final void R0(Fragment fragment) {
FragmentManager supportFragmentManager = getSupportFragmentManager();
supportFragmentManager.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager);
aVar.l(2131363225, fragment, (String) null);
aVar.p(false);
}
public final void onCreate(Bundle bundle) {
CharSequence charSequence;
super/*androidx.fragment.app.n*/.onCreate(bundle);
androidx.databinding.p h = androidx.databinding.g.h(this, 2131558500);
Intrinsics.checkNotNullExpressionValue(h, "setContentView(...)");
in.hopscotch.android.databinding.h2 h2Var = (in.hopscotch.android.databinding.h2) h;
this.binding = h2Var;
String str = null;
if (h2Var == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
h2Var = null;
}
setContentView(h2Var.E());
in.hopscotch.android.databinding.h2 h2Var2 = this.binding;
if (h2Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
h2Var2 = null;
}
setSupportActionBar(h2Var2.e.d);
androidx.appcompat.app.a supportActionBar = getSupportActionBar();
if (supportActionBar != null) {
supportActionBar.t(true);
supportActionBar.w();
}
Intent intent = getIntent();
String stringExtra = intent != null ? intent.getStringExtra("FROM_SCREEN") : null;
if (stringExtra == null) {
stringExtra = "";
}
this.from = stringExtra;
Intent intent2 = getIntent();
String stringExtra2 = intent2 != null ? intent2.getStringExtra("INTENT_EXTRA_VALUE") : null;
this.value = stringExtra2 != null ? stringExtra2 : "";
in.hopscotch.android.databinding.h2 h2Var3 = this.binding;
if (h2Var3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
h2Var3 = null;
}
AppCompatTextView appCompatTextView = h2Var3.e.e;
String str2 = this.from;
if (str2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("from");
str2 = null;
}
switch (str2.hashCode()) {
case -856894083:
if (str2.equals("ACCOUNT_NAME")) {
charSequence = getString(2132018465);
break;
}
charSequence = null;
break;
case 66081660:
if (str2.equals("EMAIL")) {
charSequence = getString(2132017855);
break;
}
charSequence = null;
break;
case 76105038:
if (str2.equals("PHONE")) {
charSequence = getString(2132018363);
break;
}
charSequence = null;
break;
case 2012838315:
if (str2.equals("DELETE")) {
charSequence = getString(2132017780);
break;
}
charSequence = null;
break;
default:
charSequence = null;
break;
}
appCompatTextView.setText(charSequence);
String str3 = this.from;
if (str3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("from");
str3 = null;
}
if (Intrinsics.areEqual(str3, "ACCOUNT_NAME")) {
in.hopscotch.android.fragment.z0 z0Var = new in.hopscotch.android.fragment.z0();
Bundle bundle2 = new Bundle();
String str4 = this.value;
if (str4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("value");
} else {
str = str4;
}
bundle2.putString("INTENT_EXTRA_VALUE", str);
z0Var.setArguments(bundle2);
R0(z0Var);
return;
}
if (Intrinsics.areEqual(str3, "DELETE")) {
in.hopscotch.android.fragment.k kVar = new in.hopscotch.android.fragment.k();
Bundle bundle3 = new Bundle();
String str5 = this.value;
if (str5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("value");
} else {
str = str5;
}
bundle3.putString("INTENT_EXTRA_VALUE", str);
kVar.setArguments(bundle3);
R0(kVar);
return;
}
in.hopscotch.android.fragment.w0 w0Var = new in.hopscotch.android.fragment.w0();
Bundle bundle4 = new Bundle();
String str6 = this.value;
if (str6 == null) {
Intrinsics.throwUninitializedPropertyAccessException("value");
str6 = null;
}
bundle4.putString("INTENT_EXTRA_VALUE", str6);
String str7 = this.from;
if (str7 == null) {
Intrinsics.throwUninitializedPropertyAccessException("from");
} else {
str = str7;
}
bundle4.putString("FROM_SCREEN", str);
Intent intent3 = getIntent();
bundle4.putBoolean("verify", intent3 != null && intent3.getBooleanExtra("verify", false));
w0Var.setArguments(bundle4);
R0(w0Var);
}
public final boolean onOptionsItemSelected(@NotNull MenuItem menuItem) {
Intrinsics.checkNotNullParameter(menuItem, "item");
if (menuItem.getItemId() == 16908332) {
onBackPressed();
}
return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
}
}