OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 ChangeAccountActivity.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.ui.gaccount;
import android.annotation.TargetApi;
import android.os.Build;
import android.view.View;
import android.webkit.JavascriptInterface;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.TextView;
import com.excelliance.kxqp.gs.ui.make_money.DeepBaseActivity;
import com.excelliance.kxqp.gs.ui.mine.a;
public class ChangeAccountActivity extends DeepBaseActivity<com.excelliance.kxqp.gs.base.e> implements a.InterfaceC0422a {
private WebView f9153a;
private TextView f9154b;
@Override
public String getLayoutName() {
return "activity_change_account";
}
@Override
public void initId() {
this.f9153a = (WebView) findId("webView");
this.f9154b = (TextView) findId("tv_title");
findIdAndSetTag(com.alipay.sdk.widget.j.j, 1).setOnClickListener(this);
a();
if (com.excelliance.kxqp.gs.newappstore.b.c.a(this)) {
View findId = findId("statusbar");
View findId2 = findId("layout_title_bar");
if (findId != null) {
findId.setBackgroundColor(com.excelliance.kxqp.gs.newappstore.b.c.f7694a);
}
if (findId2 != null) {
findId2.setBackgroundColor(com.excelliance.kxqp.gs.newappstore.b.c.f7694a);
}
}
}
@Override
public void onClick(int i) {
if (i != 1) {
return;
}
onBackPressed();
}
@TargetApi(11)
private void a() {
WebSettings settings = this.f9153a.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);
if (Build.VERSION.SDK_INT >= 26) {
settings.setSafeBrowsingEnabled(false);
}
this.f9153a.addJavascriptInterface(this, "app");
this.f9153a.loadUrl("https://h5.ourplay.com.cn/html/guide-google1/index.html#/");
this.f9153a.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
return super.shouldOverrideUrlLoading(webView, str);
}
});
this.f9153a.setWebChromeClient(new WebChromeClient() {
@Override
public void onReceivedTitle(WebView webView, String str) {
super.onReceivedTitle(webView, str);
ChangeAccountActivity.this.f9154b.setText(str);
}
});
}
@Override
public void onResume() {
super.onResume();
com.excelliance.kxqp.gs.ui.mine.a.c().a((a.InterfaceC0422a) this);
}
@Override
public void onPause() {
super.onPause();
com.excelliance.kxqp.gs.ui.mine.a.c().b((a.InterfaceC0422a) this);
}
@JavascriptInterface
public void setLanguage() {
com.excelliance.kxqp.gs.ui.mine.a.c().h();
}
@JavascriptInterface
public void setPassword() {
com.excelliance.kxqp.gs.ui.mine.a.c().k();
}
@JavascriptInterface
public void setEmail() {
com.excelliance.kxqp.gs.ui.mine.a.c().i();
}
@JavascriptInterface
public void setPhone() {
com.excelliance.kxqp.gs.ui.mine.a.c().j();
}
@JavascriptInterface
public void setWebCommonUrl(String str) {
com.excelliance.kxqp.gs.ui.mine.a.c().a(str);
}
@Override
public void onDestroy() {
super.onDestroy();
if (this.f9153a != null) {
this.f9153a.getSettings().setJavaScriptEnabled(false);
this.f9153a.clearCache(true);
this.f9153a.setWebChromeClient(null);
this.f9153a.setWebViewClient(null);
this.f9153a.setVisibility(8);
this.f9153a.removeAllViews();
this.f9153a.destroy();
this.f9153a = null;
}
}
}