mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-31 13:48:20 +01:00
[UI] Fix blank screen when loading activity.
This commit is contained in:
parent
7b04202a00
commit
09bc658f97
@ -687,7 +687,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
}*/
|
}*/
|
||||||
|
|
||||||
if (navLoading) {
|
if (navLoading) {
|
||||||
navLoading = false
|
|
||||||
b.fragment.removeAllViews()
|
b.fragment.removeAllViews()
|
||||||
if (intentTargetId == -1)
|
if (intentTargetId == -1)
|
||||||
intentTargetId = HOME_ID
|
intentTargetId = HOME_ID
|
||||||
@ -707,13 +706,14 @@ class MainActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
intentTargetId != -1 -> {
|
intentTargetId != -1 -> {
|
||||||
drawer.currentProfile = app.profile.id
|
drawer.currentProfile = app.profile.id
|
||||||
if (navTargetId != intentTargetId)
|
if (navTargetId != intentTargetId || navLoading)
|
||||||
loadTarget(intentTargetId, extras)
|
loadTarget(intentTargetId, extras)
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
drawer.currentProfile = app.profile.id
|
drawer.currentProfile = app.profile.id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
navLoading = false
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun recreate() {
|
override fun recreate() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user