From 00b10ed048cc1f6490e7ca3e0530dd4471ca5a40 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Wed, 27 May 2020 13:39:55 +0200 Subject: Implement internal webview for authenticating when OPEN_URL is used --- .../ui/java/de/blinkt/openvpn/core/VariantConfig.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 main/src/ui/java/de/blinkt/openvpn/core/VariantConfig.java (limited to 'main/src/ui/java/de/blinkt/openvpn/core') diff --git a/main/src/ui/java/de/blinkt/openvpn/core/VariantConfig.java b/main/src/ui/java/de/blinkt/openvpn/core/VariantConfig.java new file mode 100644 index 00000000..5db8382c --- /dev/null +++ b/main/src/ui/java/de/blinkt/openvpn/core/VariantConfig.java @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2012-2020 Arne Schwabe + * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt + */ + +package de.blinkt.openvpn.core; + +import android.content.Context; +import android.content.Intent; + +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); + } +} -- cgit v1.2.3