| | |
| | | import android.os.Bundle; |
| | | import android.os.Handler; |
| | | import android.os.Message; |
| | | |
| | | import androidx.annotation.NonNull; |
| | | import androidx.core.app.NotificationCompat; |
| | | |
| | | import android.util.Log; |
| | | import android.view.KeyEvent; |
| | | import android.view.View; |
| | |
| | | } catch (Exception e) { |
| | | |
| | | } |
| | | webSpeedUpHost.add("192.168.3.122"); |
| | | if (webSpeedUpHost != null && webSpeedUpHost.contains(host)) { |
| | | if (url.endsWith("2.1.4/jquery.min.js")) { |
| | | response = new WebResourceResponse("*", "UTF-8", getAssets().open("js/jquery-2.1.4.min.js")); |
| | |
| | | try { |
| | | Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); |
| | | startActivity(intent); |
| | | }catch(Exception e){ |
| | | } catch (Exception e) { |
| | | |
| | | } |
| | | return true; |
| | |
| | | |
| | | @Override |
| | | public void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) { |
| | | sslErrorHandler.proceed(); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public WebResourceResponse shouldInterceptRequest(WebView webView, String url) { |
| | | WebResourceResponse response = null; |