diff options
author | Arne Schwabe <arne@rfc2549.org> | 2021-08-13 14:48:01 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-08-13 14:48:01 +0200 |
commit | 2765afc92e13d9e751a036d53736bf42978e5b87 (patch) | |
tree | 109dd9bf82232433d225b45ca8f4277718e99f96 /main/src/ui/java/de/blinkt/openvpn/core/VariantConfig.java | |
parent | e530ceb63981af11242421151b4e28639fbe31fd (diff) |
Add WEB_AUTH pending auth support
Diffstat (limited to 'main/src/ui/java/de/blinkt/openvpn/core/VariantConfig.java')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/core/VariantConfig.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/core/VariantConfig.java b/main/src/ui/java/de/blinkt/openvpn/core/VariantConfig.java index 5db8382c..bc7df548 100644 --- a/main/src/ui/java/de/blinkt/openvpn/core/VariantConfig.java +++ b/main/src/ui/java/de/blinkt/openvpn/core/VariantConfig.java @@ -12,7 +12,10 @@ import de.blinkt.openvpn.activities.InternalWebView; public class VariantConfig { /** Return the normal webview or internal webview depending what is available */ - static Intent getOpenUrlIntent(Context c) { - return new Intent(c, InternalWebView.class); + static Intent getOpenUrlIntent(Context c, boolean external) { + if (external) + return new Intent(Intent.ACTION_VIEW); + else + return new Intent(c, InternalWebView.class); } } |