blob: bc7df548834cd29bfca160211a2b76056ec9b38b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* 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, boolean external) {
if (external)
return new Intent(Intent.ACTION_VIEW);
else
return new Intent(c, InternalWebView.class);
}
}
|