正在查看: Biko v2.0.23 应用的 StreamerGuideWebViewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Biko v2.0.23 应用的 StreamerGuideWebViewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package app.callpe.ui.misc;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import app.callpe.databinding.ActivityStreamerGuideWebViewBinding;
import app.callpe.ui.user.ApplyStreamerActivity;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000(\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\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0002J\b\u0010\t\u001a\u00020\u0006H\u0002J\u0012\u0010\n\u001a\u00020\u00062\b\u0010\u000b\u001a\u0004\u0018\u00010\fH\u0014J\u0010\u0010\r\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0003R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082.¢\u0006\u0002\n\u0000¨\u0006\u000e"}, d2 = {"Lapp/callpe/ui/misc/StreamerGuideWebViewActivity;", "Landroidx/appcompat/app/AppCompatActivity;", "()V", "binding", "Lapp/callpe/databinding/ActivityStreamerGuideWebViewBinding;", "loadScreen", "", "url", "", "onClicks", "onCreate", "savedInstanceState", "Landroid/os/Bundle;", "showWebContent", "app_bikoRelease"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class StreamerGuideWebViewActivity extends AppCompatActivity {
private ActivityStreamerGuideWebViewBinding binding;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActivityStreamerGuideWebViewBinding inflate = ActivityStreamerGuideWebViewBinding.inflate(getLayoutInflater());
Intrinsics.checkNotNullExpressionValue(inflate, "inflate(layoutInflater)");
this.binding = inflate;
if (inflate == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
inflate = null;
}
setContentView((View) inflate.getRoot());
loadScreen("https://callpe.app/become-a-streamer");
onClicks();
}
private final void loadScreen(String url) {
try {
Intent intent = getIntent();
ActivityStreamerGuideWebViewBinding activityStreamerGuideWebViewBinding = null;
String stringExtra = intent != null ? intent.getStringExtra("origin") : null;
if (stringExtra != null) {
int hashCode = stringExtra.hashCode();
if (hashCode != -1209126885) {
if (hashCode != -902467304) {
if (hashCode == 348332473 && stringExtra.equals("user_account")) {
showWebContent(url);
return;
}
} else if (stringExtra.equals("signup")) {
showWebContent(url);
return;
}
} else if (stringExtra.equals("streamer_account")) {
ActivityStreamerGuideWebViewBinding activityStreamerGuideWebViewBinding2 = this.binding;
if (activityStreamerGuideWebViewBinding2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityStreamerGuideWebViewBinding2 = null;
}
activityStreamerGuideWebViewBinding2.continueBtn.setVisibility(8);
ActivityStreamerGuideWebViewBinding activityStreamerGuideWebViewBinding3 = this.binding;
if (activityStreamerGuideWebViewBinding3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
activityStreamerGuideWebViewBinding = activityStreamerGuideWebViewBinding3;
}
activityStreamerGuideWebViewBinding.arrow.setVisibility(8);
showWebContent(url);
return;
}
}
Toast.makeText((Context) this, "something went wrong", 0).show();
finish();
} catch (Exception unused) {
Toast.makeText((Context) this, "something went wrong", 0).show();
}
}
private final void onClicks() {
ActivityStreamerGuideWebViewBinding activityStreamerGuideWebViewBinding = this.binding;
ActivityStreamerGuideWebViewBinding activityStreamerGuideWebViewBinding2 = null;
if (activityStreamerGuideWebViewBinding == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityStreamerGuideWebViewBinding = null;
}
activityStreamerGuideWebViewBinding.continueBtn.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
StreamerGuideWebViewActivity.onClicks$lambda$1(StreamerGuideWebViewActivity.this, view);
}
});
ActivityStreamerGuideWebViewBinding activityStreamerGuideWebViewBinding3 = this.binding;
if (activityStreamerGuideWebViewBinding3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityStreamerGuideWebViewBinding3 = null;
}
activityStreamerGuideWebViewBinding3.continueBtn2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
StreamerGuideWebViewActivity.onClicks$lambda$3(StreamerGuideWebViewActivity.this, view);
}
});
ActivityStreamerGuideWebViewBinding activityStreamerGuideWebViewBinding4 = this.binding;
if (activityStreamerGuideWebViewBinding4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
activityStreamerGuideWebViewBinding2 = activityStreamerGuideWebViewBinding4;
}
activityStreamerGuideWebViewBinding2.backBtn.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
StreamerGuideWebViewActivity.onClicks$lambda$4(StreamerGuideWebViewActivity.this, view);
}
});
}
public static final void onClicks$lambda$1(StreamerGuideWebViewActivity streamerGuideWebViewActivity, View view) {
Intrinsics.checkNotNullParameter(streamerGuideWebViewActivity, "this$0");
Intent intent = new Intent((Context) streamerGuideWebViewActivity, (Class<?>) ApplyStreamerActivity.class);
intent.putExtra("firstTime", true);
streamerGuideWebViewActivity.finish();
streamerGuideWebViewActivity.startActivity(intent);
}
public static final void onClicks$lambda$3(StreamerGuideWebViewActivity streamerGuideWebViewActivity, View view) {
Intrinsics.checkNotNullParameter(streamerGuideWebViewActivity, "this$0");
Intent intent = new Intent((Context) streamerGuideWebViewActivity, (Class<?>) ApplyStreamerActivity.class);
intent.putExtra("firstTime", true);
streamerGuideWebViewActivity.finish();
streamerGuideWebViewActivity.startActivity(intent);
}
public static final void onClicks$lambda$4(StreamerGuideWebViewActivity streamerGuideWebViewActivity, View view) {
Intrinsics.checkNotNullParameter(streamerGuideWebViewActivity, "this$0");
streamerGuideWebViewActivity.finish();
}
private final void showWebContent(String url) {
try {
ActivityStreamerGuideWebViewBinding activityStreamerGuideWebViewBinding = this.binding;
if (activityStreamerGuideWebViewBinding == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityStreamerGuideWebViewBinding = null;
}
WebView webView = activityStreamerGuideWebViewBinding.webView;
webView.getSettings().setJavaScriptEnabled(true);
webView.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url2) {
ActivityStreamerGuideWebViewBinding activityStreamerGuideWebViewBinding2;
super.onPageFinished(view, url2);
activityStreamerGuideWebViewBinding2 = StreamerGuideWebViewActivity.this.binding;
if (activityStreamerGuideWebViewBinding2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
activityStreamerGuideWebViewBinding2 = null;
}
activityStreamerGuideWebViewBinding2.progressBar.setVisibility(8);
}
});
webView.loadUrl(url);
} catch (Exception unused) {
Toast.makeText((Context) this, "something went wrong", 0).show();
}
}
}