mirror of
https://github.com/mihonapp/mihon.git
synced 2025-08-11 09:11:32 +02:00
Fix library category not updatable when empty. Closes #907
This commit is contained in:
app/src
main
java
eu
kanade
tachiyomi
ui
test
java
eu
kanade
tachiyomi
@@ -83,7 +83,7 @@ class LibraryCategoryView @JvmOverloads constructor(context: Context, attrs: Att
|
||||
// Disable swipe refresh when view is not at the top
|
||||
val firstPos = (recycler.layoutManager as LinearLayoutManager)
|
||||
.findFirstCompletelyVisibleItemPosition()
|
||||
swipe_refresh.isEnabled = firstPos == 0
|
||||
swipe_refresh.isEnabled = firstPos <= 0
|
||||
}
|
||||
})
|
||||
|
||||
|
@@ -81,7 +81,7 @@ class RecentChaptersController : NucleusController<RecentChaptersPresenter>(),
|
||||
recycler.scrollStateChanges().subscribeUntilDestroy {
|
||||
// Disable swipe refresh when view is not at the top
|
||||
val firstPos = layoutManager.findFirstCompletelyVisibleItemPosition()
|
||||
swipe_refresh.isEnabled = firstPos == 0
|
||||
swipe_refresh.isEnabled = firstPos <= 0
|
||||
}
|
||||
|
||||
swipe_refresh.setDistanceToTriggerSync((2 * 64 * resources.displayMetrics.density).toInt())
|
||||
|
@@ -5,4 +5,8 @@ open class TestApp : App() {
|
||||
override fun setupAcra() {
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
override fun setupJobManager() {
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user