From 97abcbb0d8b781020dda4932884755a0d08733ec Mon Sep 17 00:00:00 2001 From: Exenifix Date: Wed, 4 May 2022 00:04:11 +0300 Subject: [PATCH] Wrong condition fix --- app/src/main/java/com/exenifix/weatherapp/MainActivity.java | 2 +- build.gradle | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/exenifix/weatherapp/MainActivity.java b/app/src/main/java/com/exenifix/weatherapp/MainActivity.java index 41675a6..cc713bb 100644 --- a/app/src/main/java/com/exenifix/weatherapp/MainActivity.java +++ b/app/src/main/java/com/exenifix/weatherapp/MainActivity.java @@ -78,7 +78,7 @@ private void onSetServerButtonClick(View v) { Toast.makeText(this, "Server field must not be empty!", Toast.LENGTH_SHORT).show(); return; } - if (newUrl.endsWith("/")) { + if (!newUrl.endsWith("/")) { newUrl += "/"; } serverURL = newUrl; diff --git a/build.gradle b/build.gradle index 2fcc7ef..905d3bd 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id 'com.android.application' version '7.1.2' apply false - id 'com.android.library' version '7.1.2' apply false + id 'com.android.application' version '7.1.3' apply false + id 'com.android.library' version '7.1.3' apply false } task clean(type: Delete) {