Lucky Star Slot Machine v1.0版本的 MD5 值为:44bd7846aad5ecd1ec4676273e7b165d
以下内容为反编译后的 MainActivity.java 源代码,内容仅作参考
package com.zysbbg.machine.bfzbg;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import androidx.appcompat.app.AppCompatActivity;
public class MainActivity extends AppCompatActivity {
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
getWindow().getDecorView().setSystemUiVisibility(6);
setContentView(R.layout.activity_main);
loadData();
}
private void loadData() {
final WebView webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView webView2, WebResourceRequest webResourceRequest) {
webView2.loadUrl(webResourceRequest.getUrl().toString());
return true;
}
});
webView.loadUrl("https://www.zhongnanshenjian.com/");
webView.setOnKeyListener(new View.OnKeyListener() {
@Override
public final boolean onKey(View view, int i, KeyEvent keyEvent) {
return MainActivity.lambda$loadData$0(webView, view, i, keyEvent);
}
});
}
public static boolean lambda$loadData$0(WebView webView, View view, int i, KeyEvent keyEvent) {
if (i == 4 && webView.canGoBack()) {
webView.goBack();
return true;
}
return false;
}
}