mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-13 20:48:56 +01:00
Refactor and convert to Kotlin base classes. Fix FAB behavior
This commit is contained in:
@@ -62,7 +62,7 @@ class LibraryAdapter(fm: FragmentManager) : SmartFragmentStatePagerAdapter(fm) {
|
||||
* @param mode the mode to set.
|
||||
*/
|
||||
fun setSelectionMode(mode: Int) {
|
||||
for (fragment in registeredFragments) {
|
||||
for (fragment in getRegisteredFragments()) {
|
||||
(fragment as LibraryCategoryFragment).setSelectionMode(mode)
|
||||
}
|
||||
}
|
||||
@@ -71,7 +71,7 @@ class LibraryAdapter(fm: FragmentManager) : SmartFragmentStatePagerAdapter(fm) {
|
||||
* Notifies the adapters in all the registered fragments to refresh their content.
|
||||
*/
|
||||
fun refreshRegisteredAdapters() {
|
||||
for (fragment in registeredFragments) {
|
||||
for (fragment in getRegisteredFragments()) {
|
||||
(fragment as LibraryCategoryFragment).adapter.notifyDataSetChanged()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user