From 0c5b0a5823bce08fd61afabfbba6def69028b87e Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 1 Mar 2024 16:59:29 -0800 Subject: [PATCH] apparently LOLLIPOP also needs to use http --- .../app/src/main/java/org/eehouse/android/xw4/NetUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/NetUtils.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/NetUtils.java index d852f7788..f7b61d00f 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/NetUtils.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/NetUtils.java @@ -118,7 +118,7 @@ public class NetUtils { // just to be safe. 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( "^http:", "https:" ); if ( ! url.equals( result ) ) {