Skip to content

Commit

Permalink
fix: headerAdaptor crash
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelonion committed Mar 6, 2024
1 parent 18778f3 commit acef7c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/ani/dantotsu/media/SearchActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ class SearchActivity : AppCompatActivity() {

var state: Parcelable? = null
override fun onPause() {
headerAdaptor.addHistory()
if (this::headerAdaptor.isInitialized) {
headerAdaptor.addHistory()
}
super.onPause()
state = binding.searchRecyclerView.layoutManager?.onSaveInstanceState()
}
Expand Down

0 comments on commit acef7c3

Please sign in to comment.