Apk Done v1.0版本的 MD5 值为:44cfb8e1ce639995aa7f0de6a3a6388b
以下内容为反编译后的 PausedContentInfoActivity.java 源代码,内容仅作参考
package com.appsgeyser.sdk;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.FrameLayout;
import android.widget.ImageView;
import com.applovin.impl.sdk.utils.Utils;
import com.appsgeyser.sdk.configuration.Configuration;
import com.appsgeyser.sdk.server.network.NetworkManager;
public class PausedContentInfoActivity extends Activity {
public static void startPausedContentInfoActivity(Context context, boolean z) {
Intent intent = new Intent(context, PausedContentInfoActivity.class);
intent.putExtra("CustomHtmlAboutKey", z);
intent.setFlags(67108864);
intent.setFlags(536870912);
context.startActivity(intent);
}
@Override
protected void onCreate(Bundle bundle) {
String str;
super.onCreate(bundle);
setContentView(R.layout.appsgeysersdk_paused_content_activity);
Log.d("PausedContentInfo", "created pausedActivity");
WebView webView = (WebView) findViewById(R.id.webView);
final boolean booleanExtra = getIntent().getBooleanExtra("CustomHtmlAboutKey", false);
final String str2 = "http://www.appsgeyser.com/branding/" + Configuration.getInstance(this).getApplicationId();
if (booleanExtra) {
str = str2;
} else {
str = "https://www.appsgeyser.com/paused/" + Configuration.getInstance(this).getApplicationId();
}
if (booleanExtra) {
ImageView imageView = (ImageView) findViewById(R.id.close_screen);
imageView.setVisibility(0);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
PausedContentInfoActivity.this.lambda$onCreate$0$PausedContentInfoActivity(view);
}
});
imageView.bringToFront();
}
if (NetworkManager.isOnline(this)) {
webView.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView webView2, String str3) {
if (Uri.parse(str3).getScheme().equals(Utils.PLAY_STORE_SCHEME)) {
try {
webView2.stopLoading();
webView2.goBack();
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(Uri.parse(str3));
((Activity) webView2.getContext()).startActivity(intent);
return false;
} catch (ActivityNotFoundException unused) {
Uri parse = Uri.parse(str3);
webView2.loadUrl("http://play.google.com/store/apps/" + parse.getHost() + "?" + parse.getQuery());
return false;
}
} else if (booleanExtra && !str3.contains("appsgeyser.com/branding/")) {
PausedContentInfoActivity.this.startActivity(new Intent("android.intent.action.VIEW", Uri.parse(str3)));
return true;
} else {
webView2.loadUrl(str3);
return false;
}
}
@Override
public boolean shouldOverrideUrlLoading(WebView webView2, WebResourceRequest webResourceRequest) {
if (!booleanExtra || webResourceRequest.getUrl().toString().equals(str2)) {
webView2.loadUrl(webResourceRequest.getUrl().toString());
}
return super.shouldOverrideUrlLoading(webView2, webResourceRequest);
}
});
webView.loadUrl(str);
} else if (booleanExtra) {
} else {
webView.setVisibility(8);
((FrameLayout) findViewById(R.id.ban_view)).setVisibility(0);
}
}
public void lambda$onCreate$0$PausedContentInfoActivity(View view) {
finish();
}
@Override
public void onBackPressed() {
if (getIntent().getBooleanExtra("CustomHtmlAboutKey", false)) {
super.onBackPressed();
}
}
}