正在查看: Share Any v2.1.7 应用的 WebActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Share Any v2.1.7 应用的 WebActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package net.shareany.app.activity;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import androidx.activity.ComponentActivity;
import androidx.activity.l;
import com.facebook.internal.c0;
import ed.m;
import ed.n;
import g.j;
import g3.i;
import m5.h;
public class WebActivity extends j {
public boolean A;
public i B;
public static final String D = h.a(new byte[]{-81, -6, -66, -16, -85, -35, -67, -25, -88, -35, -66, -21, -66, -18, -81}, new byte[]{-54, -126});
public static final String E = h.a(new byte[]{105, -29, 120, -23, 109, -60, 123, -2, 110, -60, 121, -23, 96}, new byte[]{12, -101});
public static final String C = "WebActivity";
public void onBackPressed() {
if (((WebView) this.B.h).canGoBack()) {
((WebView) this.B.h).goBack();
} else {
((ComponentActivity) this).k.b();
}
}
public void onCreate(Bundle bundle) {
super/*androidx.fragment.app.q*/.onCreate(bundle);
View inflate = getLayoutInflater().inflate(2131492909, (ViewGroup) null, false);
int i = 2131296586;
FrameLayout frameLayout = (FrameLayout) l.c(inflate, 2131296586);
if (frameLayout != null) {
i = 2131296711;
LinearLayout linearLayout = (LinearLayout) l.c(inflate, 2131296711);
if (linearLayout != null) {
i = 2131296831;
ProgressBar progressBar = (ProgressBar) l.c(inflate, 2131296831);
if (progressBar != null) {
i = 2131297118;
WebView webView = (WebView) l.c(inflate, 2131297118);
if (webView != null) {
i iVar = new i((LinearLayout) inflate, frameLayout, linearLayout, progressBar, webView);
this.B = iVar;
setContentView(iVar.a());
String stringExtra = getIntent().getStringExtra(D);
String stringExtra2 = getIntent().getStringExtra(E);
if (u() != null) {
u().s(stringExtra);
u().m(true);
}
((WebView) this.B.h).setWebViewClient(new m(this));
((WebView) this.B.h).setWebChromeClient(new n(this));
((WebView) this.B.h).loadUrl(stringExtra2);
((FrameLayout) this.B.c).setOnClickListener(new c0(this));
return;
}
}
}
}
throw new NullPointerException(h.a(new byte[]{-42, -46, -24, -56, -14, -43, -4, -101, -23, -34, -22, -50, -14, -55, -2, -33, -69, -51, -14, -34, -20, -101, -20, -46, -17, -45, -69, -14, -33, -127, -69}, new byte[]{-101, -69}).concat(inflate.getResources().getResourceName(i)));
}
public void onDestroy() {
((WebView) this.B.h).clearCache(true);
((WebView) this.B.h).removeAllViews();
((WebView) this.B.h).destroy();
super.onDestroy();
}
public boolean onOptionsItemSelected(MenuItem menuItem) {
if (menuItem.getItemId() != 16908332) {
return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
}
onBackPressed();
return true;
}
public void onPause() {
super/*androidx.fragment.app.q*/.onPause();
((WebView) this.B.h).onPause();
}
public void onResume() {
super/*androidx.fragment.app.q*/.onResume();
((WebView) this.B.h).onResume();
}
}