正在查看: 95爱播免登录版 v3.1.9 应用的 AuthWebVeiwActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 AuthWebVeiwActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mobile.auth.gatewayauth.activity;
import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageButton;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.mobile.auth.gatewayauth.AuthUIConfig;
import com.mobile.auth.gatewayauth.Constant;
import com.mobile.auth.gatewayauth.a;
import com.mobile.auth.gatewayauth.d;
public class AuthWebVeiwActivity extends Activity {
private WebView a;
private String b;
private String c;
private ProgressBar d;
private TextView f1332e;
private RelativeLayout f1333f;
private AuthUIConfig f1334g;
private ImageButton f1335h;
static ProgressBar a(AuthWebVeiwActivity authWebVeiwActivity) {
try {
return authWebVeiwActivity.d;
} catch (Throwable th) {
a.a(th);
return null;
}
}
static String b(AuthWebVeiwActivity authWebVeiwActivity) {
try {
return authWebVeiwActivity.c;
} catch (Throwable th) {
a.a(th);
return null;
}
}
static TextView c(AuthWebVeiwActivity authWebVeiwActivity) {
try {
return authWebVeiwActivity.f1332e;
} catch (Throwable th) {
a.a(th);
return null;
}
}
@Override
protected void onCreate(Bundle bundle) {
AuthUIConfig h2;
TextView textView;
int navTextSize;
ImageButton imageButton;
Drawable b;
try {
this.b = getIntent().getStringExtra("url");
this.c = getIntent().getStringExtra(Constant.PROTOCOL_WEBVIEW_NAME);
int intExtra = getIntent().getIntExtra(Constant.LOGIN_ACTIVITY_UI_MANAGER_ID, 0);
setRequestedOrientation(getIntent().getIntExtra(Constant.PROTOCOL_WEBVIEW_ORIENTATION, 1));
super.onCreate(bundle);
d a = d.a(intExtra);
if (a == null) {
com.mobile.auth.s.a.a(getApplicationContext()).d("UIManager is null!|ID:", String.valueOf(intExtra));
h2 = d.a;
} else {
h2 = a.h();
}
this.f1334g = h2;
setContentView(com.mobile.auth.gatewayauth.utils.a.a(this, "authsdk_dialog_layout", "layout"));
d.a(this.f1334g, this);
this.f1332e = (TextView) findViewById(com.mobile.auth.gatewayauth.utils.a.a(this, "authsdk_title_tv", "id"));
this.f1333f = (RelativeLayout) findViewById(com.mobile.auth.gatewayauth.utils.a.a(this, "authsdk_title_rl", "id"));
this.f1335h = (ImageButton) findViewById(com.mobile.auth.gatewayauth.utils.a.a(this, "authsdk_back_btn", "id"));
this.f1333f.setBackgroundColor(this.f1334g.getWebNavColor());
this.f1332e.setTextColor(this.f1334g.getWebNavTextColor());
if (this.f1334g.getWebNavTextSize() != -1) {
textView = this.f1332e;
navTextSize = this.f1334g.getWebNavTextSize();
} else {
textView = this.f1332e;
navTextSize = this.f1334g.getNavTextSize();
}
textView.setTextSize(2, navTextSize);
this.f1335h.setBackgroundColor(0);
this.f1335h.setScaleType(this.f1334g.getNavReturnScaleType());
this.f1335h.setPadding(0, 0, 0, 0);
if (com.mobile.auth.gatewayauth.utils.a.a(this, this.f1334g.getWebNavReturnImgPath()) != 0) {
imageButton = this.f1335h;
b = com.mobile.auth.gatewayauth.utils.a.b(this, this.f1334g.getWebNavReturnImgPath(), "authsdk_return_bg");
} else {
imageButton = this.f1335h;
b = com.mobile.auth.gatewayauth.utils.a.b(this, this.f1334g.getNavReturnImgPath(), "authsdk_return_bg");
}
imageButton.setImageDrawable(b);
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.f1335h.getLayoutParams();
layoutParams.width = com.mobile.auth.gatewayauth.utils.a.a(this, this.f1334g.getNavReturnImgWidth());
layoutParams.height = com.mobile.auth.gatewayauth.utils.a.a(this, this.f1334g.getNavReturnImgHeight());
this.f1335h.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
try {
AuthWebVeiwActivity.this.finish();
} catch (Throwable th) {
a.a(th);
}
}
});
this.d = (ProgressBar) findViewById(com.mobile.auth.gatewayauth.utils.a.a(this, "authsdk_progressBar", "id"));
WebView webView = (WebView) findViewById(com.mobile.auth.gatewayauth.utils.a.a(this, "authsdk_webview", "id"));
this.a = webView;
webView.setWebChromeClient(new WebChromeClient() {
@Override
public void onProgressChanged(WebView webView2, int i2) {
TextView c;
String str;
try {
if (i2 != 100) {
AuthWebVeiwActivity.a(AuthWebVeiwActivity.this).setVisibility(0);
AuthWebVeiwActivity.a(AuthWebVeiwActivity.this).setProgress(i2);
return;
}
AuthWebVeiwActivity.a(AuthWebVeiwActivity.this).setVisibility(8);
String title = webView2.getTitle();
if (!TextUtils.isEmpty(AuthWebVeiwActivity.b(AuthWebVeiwActivity.this))) {
c = AuthWebVeiwActivity.c(AuthWebVeiwActivity.this);
str = AuthWebVeiwActivity.b(AuthWebVeiwActivity.this);
} else if (!TextUtils.isEmpty(title)) {
AuthWebVeiwActivity.c(AuthWebVeiwActivity.this).setText(title);
return;
} else {
c = AuthWebVeiwActivity.c(AuthWebVeiwActivity.this);
str = "服务协议";
}
c.setText(str);
} catch (Throwable th) {
a.a(th);
}
}
});
this.a.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView webView2, String str) {
return false;
}
});
this.a.setVerticalScrollBarEnabled(false);
this.a.setHorizontalScrollBarEnabled(false);
WebSettings settings = this.a.getSettings();
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);
settings.setJavaScriptEnabled(true);
settings.setDomStorageEnabled(true);
this.a.loadUrl(this.b);
} catch (Throwable th) {
a.a(th);
}
}
@Override
protected void onDestroy() {
try {
this.a.removeAllViews();
this.a.destroy();
this.a = null;
super.onDestroy();
this.f1334g = null;
} catch (Throwable th) {
a.a(th);
}
}
}