mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-31 05:48:19 +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) {
|
||||
navLoading = false
|
||||
b.fragment.removeAllViews()
|
||||
if (intentTargetId == -1)
|
||||
intentTargetId = HOME_ID
|
||||
@ -707,13 +706,14 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
intentTargetId != -1 -> {
|
||||
drawer.currentProfile = app.profile.id
|
||||
if (navTargetId != intentTargetId)
|
||||
if (navTargetId != intentTargetId || navLoading)
|
||||
loadTarget(intentTargetId, extras)
|
||||
}
|
||||
else -> {
|
||||
drawer.currentProfile = app.profile.id
|
||||
}
|
||||
}
|
||||
navLoading = false
|
||||
}
|
||||
|
||||
override fun recreate() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user