check for initialization

This commit is contained in:
Finnley Somdahl 2024-01-23 14:18:36 -06:00
parent b8fbeed785
commit 4893cd0b03

View file

@ -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()
} }