admin
2022-05-07 4c7cde7ae5ed57335405459e47de4bbd2726c4ba
android/app/src/main/java/com/yeshi/makemoney/video/app/ui/common/BrowserActivity.java
@@ -29,7 +29,7 @@
import android.widget.ProgressBar;
import android.widget.TextView;
import com.yeshi.makemoney.video.app.R;
import com.yeshi.makemoney.video.R;
import com.yeshi.makemoney.video.app.utils.AppConfigUtil;
import com.yeshi.makemoney.video.app.utils.FileUtils;
import com.yeshi.makemoney.video.app.utils.browser.MyJavaInterface;
@@ -69,15 +69,6 @@
                if (url.startsWith("weixin://") || url.startsWith("alipay://")) {
                } else if (!url.startsWith("http")) {
                    if (jumpOutProtocolSet != null) {
                        for (String prefix : jumpOutProtocolSet) {
                            if (url.startsWith(prefix)) {
                                Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
                                startActivity(intent);
                                return true;
                            }
                        }
                    }
                    return true;
                }
                return super.shouldOverrideUrlLoading(view, url);
@@ -200,8 +191,6 @@
    private String wholeTitle;
    private Set<String> jumpOutProtocolSet;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
@@ -221,7 +210,6 @@
        progressBar.setProgressDrawable(this.getResources()
                .getDrawable(R.drawable.color_progressbar));
        initX5WebView();
        jumpOutProtocolSet = AppConfigUtil.getBrowserJumpOutProtocolPrefix(getApplicationContext());
        webview.loadUrl(getIntent().getStringExtra("url"));
        wholeTitle = getIntent().getStringExtra("title");
        if (!StringUtils.isEmpty(wholeTitle)) {