check for initialization
This commit is contained in:
parent
b8fbeed785
commit
4893cd0b03
1 changed files with 3 additions and 1 deletions
|
@ -395,7 +395,9 @@ class MediaDetailsActivity : AppCompatActivity(), AppBarLayout.OnOffsetChangedLi
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
tabLayout.selectedItemId = idFromSelect()
|
if (this::tabLayout.isInitialized) {
|
||||||
|
tabLayout.selectedItemId = idFromSelect()
|
||||||
|
}
|
||||||
super.onResume()
|
super.onResume()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue