Stick Squad 3 v1.2.5.9版本的 MD5 值为:375cf7f77a7075270cd68d1397368279

以下内容为反编译后的 AppWallDelegateActivity.java 源代码,内容仅作参考


package com.fusepowered.sa.android.publish;

import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.fusepowered.l1.AdBrowseWebViewClient;
import com.fusepowered.sa.android.publish.f.g;

public class AppWallDelegateActivity extends Activity {
    private boolean a;

    private class a extends WebViewClient {
        private a() {
        }

        @Override
        public void onPageFinished(WebView webView, String str) {
            g.a(2, "MyWebViewClient::onPageFinished - [" + str + "]");
            super.onPageFinished(webView, str);
        }

        @Override
        public void onPageStarted(WebView webView, String str, Bitmap bitmap) {
            g.a(2, "MyWebViewClient::onPageStarted - [" + str + "]");
            super.onPageStarted(webView, str, bitmap);
        }

        @Override
        public void onReceivedError(WebView webView, int i, String str, String str2) {
            super.onReceivedError(webView, i, str, str2);
            AppWallDelegateActivity.this.finish();
        }

        @Override
        public boolean shouldOverrideUrlLoading(WebView webView, String str) {
            g.a(2, "MyWebViewClient::shouldOverrideUrlLoading - [" + str + "]");
            String lowerCase = str.toLowerCase();
            if (!(lowerCase.startsWith(AdBrowseWebViewClient.MARKET_SCHEME) || lowerCase.startsWith("http://play.google.com") || lowerCase.startsWith("https://play.google.com")) && AppWallDelegateActivity.this.a) {
                return false;
            }
            Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(str));
            intent.addFlags(76021760);
            AppWallDelegateActivity.this.startActivity(intent);
            if (webView != null) {
                webView.destroy();
            }
            AppWallDelegateActivity.this.finish();
            return true;
        }
    }

    @Override
    public void onConfigurationChanged(Configuration configuration) {
        g.a(2, "AppWallActivity::onConfigurationChanged orientation - [" + configuration.orientation + "]");
        super.onConfigurationChanged(configuration);
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        Intent intent = getIntent();
        this.a = intent.getBooleanExtra("smartRedirect", true);
        String stringExtra = intent.getStringExtra("clickUrl");
        WebView webView = new WebView(getApplicationContext());
        webView.getSettings().setJavaScriptEnabled(true);
        webView.setWebChromeClient(new WebChromeClient());
        webView.setWebViewClient(new a());
        webView.loadUrl(stringExtra);
    }

    @Override
    public void onDestroy() {
        g.a(2, "AppWallActivity::onDestroy");
        super.onDestroy();
    }

    @Override
    public void onPause() {
        g.a(2, "AppWallActivity::onPause");
        super.onPause();
    }

    @Override
    public void onRestart() {
        g.a(2, "AppWallActivity::onRestart");
        super.onRestart();
    }

    @Override
    public void onResume() {
        g.a(2, "AppWallActivity::onResume");
        super.onResume();
    }
}