Bump minimum version and check

pull/653/merge
Varun Patil 2023-10-03 11:07:20 -07:00
parent eb5f998505
commit 9a61e24cee
3 changed files with 3 additions and 5 deletions

View File

@ -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()
}
}

View File

@ -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()

View File

@ -1,6 +1,6 @@
<resources>
<string name="app_name">Memories</string>
<string name="min_server_version">5.1.0</string>
<string name="min_server_version">5.5.0</string>
<string name="preferences_key">memories</string>
<string name="preferences_theme_color">themeColor</string>