OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 GPAccountPwdSetting.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.ui.gaccount;
import android.view.KeyEvent;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.excelliance.kxqp.gs.base.GSBaseActivity;
import com.excelliance.kxqp.gs.util.ao;
import com.excelliance.kxqp.gs.util.w;
import com.excelliance.kxqp.sdk.StatisticsBase;
import com.excelliance.kxqp.sdk.StatisticsGS;
@Deprecated
public class GPAccountPwdSetting extends GSBaseActivity {
private View f9218a;
private WebView f9219b;
@Override
public boolean customAnimation() {
return false;
}
@Override
public boolean deepStatus() {
return true;
}
@Override
public com.excelliance.kxqp.gs.base.e initPresenter() {
return null;
}
@Override
protected void initId() {
StatisticsGS.getInstance().uploadUserAction(getApplicationContext(), StatisticsBase.UA_GOOGLE_CARD, 3, 1);
ao a2 = ao.a(this.mContext);
this.f9219b = (WebView) a2.a("accountWebView", this.f9218a);
a2.a(this.f9218a, com.alipay.sdk.widget.j.j, 0).setOnClickListener(this);
a();
}
@Override
protected View getLayout() {
this.f9218a = w.b(this.mContext, "gpaccount_pwd_setting");
return this.f9218a;
}
private void a() {
WebSettings settings = this.f9219b.getSettings();
settings.setJavaScriptEnabled(true);
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);
settings.setSupportZoom(false);
settings.setBuiltInZoomControls(false);
settings.setDisplayZoomControls(true);
settings.setCacheMode(1);
settings.setAllowFileAccess(false);
settings.setJavaScriptCanOpenWindowsAutomatically(true);
settings.setLoadsImagesAutomatically(true);
settings.setDefaultTextEncodingName("utf-8");
settings.setDomStorageEnabled(true);
this.f9219b.loadUrl("https://h5.ourplay.com.cn/html/forgetPwd/forgetPwd.html");
this.f9219b.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
return super.shouldOverrideUrlLoading(webView, str);
}
});
}
@Override
public void onDestroy() {
super.onDestroy();
if (this.f9219b != null) {
this.f9219b.getSettings().setJavaScriptEnabled(false);
this.f9219b.clearCache(true);
this.f9219b.setWebChromeClient(null);
this.f9219b.setWebViewClient(null);
this.f9219b.setVisibility(8);
this.f9219b.removeAllViews();
this.f9219b.destroy();
this.f9219b = null;
}
}
@Override
public boolean onKeyDown(int i, KeyEvent keyEvent) {
if (i == 4) {
hideKeyboard(this);
if (this.f9219b != null && this.f9219b.canGoBack()) {
this.f9219b.goBack();
return true;
}
finish();
return true;
}
return super.onKeyDown(i, keyEvent);
}
@Override
public void singleClick(View view) {
if (Integer.valueOf(view.getTag().toString()).intValue() != 0) {
return;
}
hideKeyboard(this);
if (this.f9219b != null && this.f9219b.canGoBack()) {
this.f9219b.goBack();
} else {
finish();
}
}
}