mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-14 05:05:06 +01:00
Fixed spinner not disappearing if switching tabs and searching
This commit is contained in:
parent
18cbb72f79
commit
9768b5ae25
@ -273,8 +273,8 @@ class LibraryController(
|
|||||||
recycler.addOnScrollListener(scrollListener)
|
recycler.addOnScrollListener(scrollListener)
|
||||||
|
|
||||||
spinner = ReSpinner(view.context)
|
spinner = ReSpinner(view.context)
|
||||||
(activity as MainActivity).supportActionBar?.setDisplayShowCustomEnabled(true)
|
|
||||||
(activity as MainActivity).supportActionBar?.customView = spinner
|
(activity as MainActivity).supportActionBar?.customView = spinner
|
||||||
|
(activity as MainActivity).supportActionBar?.setDisplayShowCustomEnabled(true)
|
||||||
spinnerAdapter = SpinnerAdapter(view.context, R.layout.library_spinner_textview,
|
spinnerAdapter = SpinnerAdapter(view.context, R.layout.library_spinner_textview,
|
||||||
arrayOf(resources!!.getString(R.string.label_library)))
|
arrayOf(resources!!.getString(R.string.label_library)))
|
||||||
spinnerAdapter?.setDropDownViewResource(R.layout.library_spinner_entry_text)
|
spinnerAdapter?.setDropDownViewResource(R.layout.library_spinner_entry_text)
|
||||||
@ -345,6 +345,8 @@ class LibraryController(
|
|||||||
LibraryUpdateService.setListener(this)
|
LibraryUpdateService.setListener(this)
|
||||||
}
|
}
|
||||||
else if (type == ControllerChangeType.PUSH_EXIT) {
|
else if (type == ControllerChangeType.PUSH_EXIT) {
|
||||||
|
(activity as MainActivity).toolbar.menu.findItem(R.id
|
||||||
|
.action_search)?.collapseActionView()
|
||||||
(activity as MainActivity).supportActionBar?.setDisplayShowCustomEnabled(false)
|
(activity as MainActivity).supportActionBar?.setDisplayShowCustomEnabled(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user