True Phone v2.0.22版本的 MD5 值为:6529e5770da53174edfaf6fae8d4f259
以下内容为反编译后的 EulaActivity.java 源代码,内容仅作参考
package com.hb.dialer.ui;
import android.content.res.Resources;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.hb.dialer.free.R;
import com.hb.dialer.svc.OtherEventsReceiver;
@yu(1652962635)
public class EulaActivity extends of {
public final nb0 f = hb0.c("eula-loader");
@uh(1652634050)
private WebView web;
public class a extends WebViewClient {
public final String a;
public a(String str) {
EulaActivity.this = r1;
this.a = str;
}
@Override
public final void onPageFinished(WebView webView, String str) {
String str2 = this.a;
if (!str.contains(str2)) {
webView.loadUrl("" + str2);
EulaActivity.this.web.setWebViewClient(null);
}
}
}
public static void a(EulaActivity eulaActivity, String str) {
String str2;
String c = e22.c("", t11.b(eulaActivity.getResources().getConfiguration()).a().getLanguage().toLowerCase(), ".html");
ro0 ro0Var = new ro0();
String str3 = null;
try {
oz0.d("loading url %s", c);
str2 = ro0Var.h(c);
} catch (Exception unused) {
str2 = null;
}
if (str2 == null) {
ro0 ro0Var2 = new ro0();
try {
oz0.d("loading url %s", "");
str3 = ro0Var2.h("");
} catch (Exception unused2) {
}
str2 = str3;
}
if (str2 != null) {
eulaActivity.web.post(new q80(eulaActivity, str, str2, 7));
}
}
public static void b(EulaActivity eulaActivity, String str, String str2) {
eulaActivity.getClass();
if (!str.isEmpty()) {
eulaActivity.web.setWebViewClient(new a(str));
}
eulaActivity.web.loadDataWithBaseURL("", str2, "text/html", "utf-8", null);
}
@Override
public final void onApplyThemeResource(Resources.Theme theme, int i, boolean z) {
super.onApplyThemeResource(theme, i, z);
theme.applyStyle(R.style.ForceTitle, true);
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
getActionBar().setSubtitle(R.string.eula_summary);
Uri data = getIntent().getData();
String fragment = data != null ? data.getFragment() : null;
String concat = fragment != null ? "#".concat(fragment) : "";
WebView webView = this.web;
webView.loadUrl("file:///android_res/raw/eula.html" + concat);
if (OtherEventsReceiver.a()) {
this.f.post(new d62(this, 11, concat));
}
}
}