中建乐购 v3.2.2版本的 MD5 值为:0553721e6bc6ba8dd67004696a555b81
以下内容为反编译后的 PrivacyActivity.java 源代码,内容仅作参考
package com.shopex.westore.activity;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.shopex.westore.DoActivity;
import com.zjsjtz.ecstore.R;
import tv.danmaku.ijk.media.player.IjkMediaPlayer;
public class PrivacyActivity extends DoActivity {
public static final String f8674c = "http://www.zjsjtz.com/wap/article-200.html";
WebView f8675d;
public static void a(Context context, String str) {
Intent intent = new Intent(context, PrivacyActivity.class);
intent.putExtra(IjkMediaPlayer.OnNativeInvokeListener.ARG_URL, str);
context.startActivity(intent);
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.activity_privacy);
String stringExtra = getIntent().getStringExtra(IjkMediaPlayer.OnNativeInvokeListener.ARG_URL);
if (com.shopex.westore.util.u.a(stringExtra)) {
stringExtra = f8674c;
}
this.f8675d = (WebView) findViewById(R.id.webview);
i();
this.f8675d.loadUrl(stringExtra);
}
@SuppressLint({"SetJavaScriptEnabled"})
private void i() {
WebSettings settings = this.f8675d.getSettings();
settings.setJavaScriptEnabled(true);
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);
settings.setSupportZoom(false);
settings.setBuiltInZoomControls(false);
settings.setDisplayZoomControls(false);
settings.setCacheMode(-1);
settings.setAllowFileAccess(true);
settings.setJavaScriptCanOpenWindowsAutomatically(true);
settings.setLoadsImagesAutomatically(true);
settings.setDefaultTextEncodingName("gbk");
settings.setAllowUniversalAccessFromFileURLs(true);
settings.setDomStorageEnabled(true);
this.f8675d.setWebViewClient(new WebViewClient() {
});
this.f8675d.setWebChromeClient(new WebChromeClient() {
@Override
public void onProgressChanged(WebView webView, int i2) {
super.onProgressChanged(webView, i2);
}
});
}
@Override
public void onBackPressed() {
if (this.f8675d != null && this.f8675d.canGoBack()) {
this.f8675d.goBack();
} else {
super.onBackPressed();
}
}
}