From 3dfe87901331095c893f0ed8e92c086aff0c4d69 Mon Sep 17 00:00:00 2001 From: Benjamin Kaiser Date: Sun, 9 Oct 2016 16:31:34 +1100 Subject: [PATCH] add https support with specified url --- app/build.gradle | 2 +- .../kaiserapps/benkaiser/nodemusicsyncforandroid/SyncView.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 2449479..f1ac2bf 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,7 +9,7 @@ android { minSdkVersion 8 targetSdkVersion 21 versionCode 1 - versionName "1.1" + versionName "1.2" } buildTypes { release { diff --git a/app/src/main/java/com/kaiserapps/benkaiser/nodemusicsyncforandroid/SyncView.java b/app/src/main/java/com/kaiserapps/benkaiser/nodemusicsyncforandroid/SyncView.java index dc5e431..c6e0dd2 100644 --- a/app/src/main/java/com/kaiserapps/benkaiser/nodemusicsyncforandroid/SyncView.java +++ b/app/src/main/java/com/kaiserapps/benkaiser/nodemusicsyncforandroid/SyncView.java @@ -64,7 +64,7 @@ public void onClick(View v) { // handle click String host_string = host_ip.getText().toString(); // if they left off the protocol, add it - if (!host_string.startsWith("http://")) { + if (!host_string.startsWith("http://") && !host_string.startsWith("https://")) { host_string = "http://".concat(host_string); }