正在查看: Biko v2.0.23 应用的 BanActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Biko v2.0.23 应用的 BanActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package app.callpe.ui.misc;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatTextView;
import app.callpe.common.utils.Helper;
import app.callpe.databinding.ActivityBanBinding;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0005\u001a\u00020\u00062\b\u0010\u0007\u001a\u0004\u0018\u00010\bH\u0014R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082.¢\u0006\u0002\n\u0000¨\u0006\t"}, d2 = {"Lapp/callpe/ui/misc/BanActivity;", "Landroidx/appcompat/app/AppCompatActivity;", "()V", "binding", "Lapp/callpe/databinding/ActivityBanBinding;", "onCreate", "", "savedInstanceState", "Landroid/os/Bundle;", "app_bikoRelease"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class BanActivity extends AppCompatActivity {
private ActivityBanBinding binding;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActivityBanBinding inflate = ActivityBanBinding.inflate(getLayoutInflater());
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(layoutInflater)");
this.binding = inflate;
ActivityBanBinding activityBanBinding = null;
if (inflate == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
inflate = null;
}
setContentView(inflate.getRoot());
Helper.INSTANCE.clearAllNotifications((Context) this);
if (getIntent().getBooleanExtra("permanent", false)) {
ActivityBanBinding activityBanBinding2 = this.binding;
if (activityBanBinding2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityBanBinding2 = null;
}
AppCompatTextView appCompatTextView = activityBanBinding2.textView;
Intrinsics.checkNotNullExpressionValue(appCompatTextView, "binding.textView");
((View) appCompatTextView).setVisibility(8);
ActivityBanBinding activityBanBinding3 = this.binding;
if (activityBanBinding3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityBanBinding3 = null;
}
TextView textView = activityBanBinding3.permanentTv;
Intrinsics.checkNotNullExpressionValue(textView, "binding.permanentTv");
textView.setVisibility(0);
} else {
ActivityBanBinding activityBanBinding4 = this.binding;
if (activityBanBinding4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityBanBinding4 = null;
}
AppCompatTextView appCompatTextView2 = activityBanBinding4.textView;
Intrinsics.checkNotNullExpressionValue(appCompatTextView2, "binding.textView");
((View) appCompatTextView2).setVisibility(0);
ActivityBanBinding activityBanBinding5 = this.binding;
if (activityBanBinding5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityBanBinding5 = null;
}
TextView textView2 = activityBanBinding5.permanentTv;
Intrinsics.checkNotNullExpressionValue(textView2, "binding.permanentTv");
textView2.setVisibility(8);
ActivityBanBinding activityBanBinding6 = this.binding;
if (activityBanBinding6 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityBanBinding6 = null;
}
activityBanBinding6.textView.startCountdown(getIntent().getLongExtra("banTime", 36000L));
}
String stringExtra = getIntent().getStringExtra("remarks");
if (stringExtra == null) {
stringExtra = "";
}
String str = stringExtra;
if (str.length() == 0) {
ActivityBanBinding activityBanBinding7 = this.binding;
if (activityBanBinding7 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityBanBinding7 = null;
}
LinearLayout linearLayout = activityBanBinding7.remarksParent;
Intrinsics.checkNotNullExpressionValue(linearLayout, "binding.remarksParent");
linearLayout.setVisibility(8);
} else {
ActivityBanBinding activityBanBinding8 = this.binding;
if (activityBanBinding8 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityBanBinding8 = null;
}
LinearLayout linearLayout2 = activityBanBinding8.remarksParent;
Intrinsics.checkNotNullExpressionValue(linearLayout2, "binding.remarksParent");
linearLayout2.setVisibility(0);
ActivityBanBinding activityBanBinding9 = this.binding;
if (activityBanBinding9 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityBanBinding9 = null;
}
activityBanBinding9.remarks.setText(str);
}
long longExtra = getIntent().getLongExtra("userId", -1L);
if (longExtra != -1) {
String str2 = getString(2131952136) + ' ' + longExtra;
ActivityBanBinding activityBanBinding10 = this.binding;
if (activityBanBinding10 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityBanBinding10 = null;
}
activityBanBinding10.userIdTv.setText(str2);
}
ActivityBanBinding activityBanBinding11 = this.binding;
if (activityBanBinding11 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
activityBanBinding = activityBanBinding11;
}
activityBanBinding.logoutBtn.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
BanActivity.onCreate$lambda$0(BanActivity.this, view);
}
});
}
public static final void onCreate$lambda$0(BanActivity banActivity, View view) {
Intrinsics.checkNotNullParameter(banActivity, "this$0");
Helper.signOut$default((Context) banActivity, null, 2, null);
}
}