吉他调音器专业版 v2.30701.8版本的 MD5 值为:9d8c85f04999890638bf11bd08e611f4
以下内容为反编译后的 AppPrivacyPolicyActivity.java 源代码,内容仅作参考
package com.ss.android.downloadlib.addownload.compliance;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.webkit.WebResourceRequest;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageView;
import com.bytedance.sdk.openadsdk.R;
import com.ss.android.downloadlib.addownload.j;
public class AppPrivacyPolicyActivity extends Activity {
public ImageView a;
public WebView b;
public long f4334c;
public long f4335d;
public String f4336e;
private void b() {
this.a = (ImageView) findViewById(R.id.iv_privacy_back);
this.b = (WebView) findViewById(R.id.privacy_webview);
this.a.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
e.a("lp_app_privacy_click_close", AppPrivacyPolicyActivity.this.f4335d);
AppPrivacyPolicyActivity.this.finish();
}
});
WebSettings settings = this.b.getSettings();
settings.setDefaultFontSize(16);
settings.setCacheMode(-1);
settings.setJavaScriptEnabled(true);
settings.setDomStorageEnabled(true);
if (Build.VERSION.SDK_INT >= 21) {
settings.setMixedContentMode(0);
}
settings.setLoadWithOverviewMode(true);
settings.setUseWideViewPort(true);
settings.setSupportZoom(true);
settings.setBuiltInZoomControls(true);
settings.setDisplayZoomControls(false);
settings.setSavePassword(false);
settings.setAllowFileAccess(false);
this.b.setWebViewClient(new WebViewClient() {
private boolean a(Uri uri) {
String scheme = uri.getScheme();
return ("http".equals(scheme) || "https".equals(scheme)) ? false : true;
}
@Override
@TargetApi(21)
public boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
return a(webResourceRequest.getUrl());
}
@Override
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
return a(Uri.parse(str));
}
});
a(this.b);
this.b.setScrollBarStyle(0);
this.b.loadUrl(this.f4336e);
}
@Override
public void onBackPressed() {
e.a("lp_app_privacy_click_close", this.f4335d);
super.onBackPressed();
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.ttdownloader_activity_app_privacy_policy);
if (a()) {
b();
} else {
com.ss.android.socialbase.appdownloader.c.a((Activity) this);
}
}
public static void a(Activity activity, long j2) {
Intent intent = new Intent(activity, (Class<?>) AppPrivacyPolicyActivity.class);
intent.putExtra("app_info_id", j2);
activity.startActivity(intent);
}
private boolean a() {
this.f4334c = getIntent().getLongExtra("app_info_id", 0L);
com.ss.android.downloadlib.addownload.b.b a = c.a().a(this.f4334c);
if (a == null) {
return false;
}
this.f4335d = a.b;
String str = a.f4304i;
this.f4336e = str;
if (!TextUtils.isEmpty(str)) {
return true;
}
this.f4336e = j.i().optString("ad_privacy_backup_url", "https://sf6-ttcdn-tos.pstatp.com/obj/ad-tetris-site/personal-privacy-page.html");
return true;
}
private void a(WebView webView) {
try {
webView.removeJavascriptInterface("searchBoxJavaBridge_");
webView.removeJavascriptInterface("accessibility");
webView.removeJavascriptInterface("accessibilityTraversal");
} catch (Throwable unused) {
}
}
}