mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
apparently LOLLIPOP also needs to use http
This commit is contained in:
parent
1c80fa518f
commit
0c5b0a5823
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ public class NetUtils {
|
||||||
// just to be safe.
|
// just to be safe.
|
||||||
public static String ensureProto( String url )
|
public static String ensureProto( String url )
|
||||||
{
|
{
|
||||||
String result = Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT
|
String result = Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP
|
||||||
? url.replaceFirst( "^https:", "http:" )
|
? url.replaceFirst( "^https:", "http:" )
|
||||||
: url.replaceFirst( "^http:", "https:" );
|
: url.replaceFirst( "^http:", "https:" );
|
||||||
if ( ! url.equals( result ) ) {
|
if ( ! url.equals( result ) ) {
|
||||||
|
|
Loading…
Reference in a new issue