mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-02-08 09:04:36 +01:00
[App] Disable profile archiver permanently, force app sync on first login
This commit is contained in:
parent
db444d89f0
commit
aeecc48639
@ -114,6 +114,11 @@ open class EdziennikTask(override val profileId: Int, val request: Any) : IApiTa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (profile?.empty == true) {
|
||||||
|
// force app sync on first login
|
||||||
|
app.config.sync.lastAppSync = 0L
|
||||||
|
}
|
||||||
|
|
||||||
edziennikInterface = when (loginStore.type) {
|
edziennikInterface = when (loginStore.type) {
|
||||||
LoginType.LIBRUS -> Librus(app, profile, loginStore, taskCallback)
|
LoginType.LIBRUS -> Librus(app, profile, loginStore, taskCallback)
|
||||||
LoginType.MOBIDZIENNIK -> Mobidziennik(app, profile, loginStore, taskCallback)
|
LoginType.MOBIDZIENNIK -> Mobidziennik(app, profile, loginStore, taskCallback)
|
||||||
|
@ -72,8 +72,7 @@ fun Profile.getAppData() =
|
|||||||
if (App.profileId == this.id) App.data else AppData.get(this.loginStoreType)
|
if (App.profileId == this.id) App.data else AppData.get(this.loginStoreType)
|
||||||
|
|
||||||
fun Profile.shouldArchive(): Boolean {
|
fun Profile.shouldArchive(): Boolean {
|
||||||
if (loginStoreType == LoginType.DEMO)
|
return false
|
||||||
return false
|
|
||||||
// vulcan hotfix
|
// vulcan hotfix
|
||||||
if (dateYearEnd.month > 6) {
|
if (dateYearEnd.month > 6) {
|
||||||
dateYearEnd.month = 6
|
dateYearEnd.month = 6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user