Bump minimum version and check
parent
eb5f998505
commit
9a61e24cee
|
@ -181,9 +181,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
|
|
||||||
// Start version check if loaded account
|
// Start version check if loaded account
|
||||||
if (isApp) {
|
if (isApp) {
|
||||||
Thread {
|
Thread { nativex.account.checkCredentialsAndVersion() }.start()
|
||||||
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
|
* Makes a toast to the user if something is wrong
|
||||||
*/
|
*/
|
||||||
fun checkCredentialsAndVersion() {
|
fun checkCredentialsAndVersion() {
|
||||||
if (mHttp.isLoggedIn()) return
|
if (!mHttp.isLoggedIn()) return
|
||||||
|
|
||||||
try {
|
try {
|
||||||
val response = mHttp.getApiDescription()
|
val response = mHttp.getApiDescription()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">Memories</string>
|
<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_key">memories</string>
|
||||||
<string name="preferences_theme_color">themeColor</string>
|
<string name="preferences_theme_color">themeColor</string>
|
||||||
|
|
Loading…
Reference in New Issue