From 9a61e24cee169c540736e20963b5dcfb93c63fb3 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 3 Oct 2023 11:07:20 -0700 Subject: [PATCH] Bump minimum version and check --- app/src/main/java/gallery/memories/MainActivity.kt | 4 +--- app/src/main/java/gallery/memories/service/AccountService.kt | 2 +- app/src/main/res/values/strings.xml | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/gallery/memories/MainActivity.kt b/app/src/main/java/gallery/memories/MainActivity.kt index b17099e3..427e4183 100644 --- a/app/src/main/java/gallery/memories/MainActivity.kt +++ b/app/src/main/java/gallery/memories/MainActivity.kt @@ -181,9 +181,7 @@ class MainActivity : AppCompatActivity() { // Start version check if loaded account if (isApp) { - Thread { - nativex.account.checkCredentialsAndVersion() - }.start() + Thread { nativex.account.checkCredentialsAndVersion() }.start() } } diff --git a/app/src/main/java/gallery/memories/service/AccountService.kt b/app/src/main/java/gallery/memories/service/AccountService.kt index 68f5dafc..86ea3ec6 100644 --- a/app/src/main/java/gallery/memories/service/AccountService.kt +++ b/app/src/main/java/gallery/memories/service/AccountService.kt @@ -104,7 +104,7 @@ class AccountService(private val mCtx: MainActivity, private val mHttp: HttpServ * Makes a toast to the user if something is wrong */ fun checkCredentialsAndVersion() { - if (mHttp.isLoggedIn()) return + if (!mHttp.isLoggedIn()) return try { val response = mHttp.getApiDescription() diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 54ae511b..2f73dd40 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,6 +1,6 @@ Memories - 5.1.0 + 5.5.0 memories themeColor