Bump minimum version and check
parent
eb5f998505
commit
9a61e24cee
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue