mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-18 09:43:56 +00:00
fix: headerAdaptor crash
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user