diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryFragment.kt index 0a6e68935..598f4d946 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryFragment.kt @@ -113,6 +113,8 @@ class LibraryCategoryFragment : BaseFragment(), FlexibleViewHolder.OnListItemCli } }) + // Double the distance required to trigger sync + swipe_refresh.setDistanceToTriggerSync((2 * 64 * resources.displayMetrics.density).toInt()) swipe_refresh.setOnRefreshListener { if (!LibraryUpdateService.isRunning(activity)) { libraryPresenter.categories.getOrNull(position)?.let { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryFragment.kt index b68b4bacd..4e60d1682 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryFragment.kt @@ -212,11 +212,6 @@ class LibraryFragment : BaseRxFragment(), ActionMode.Callback R.id.action_update_library -> { LibraryUpdateService.start(activity, true) } - R.id.action_update_category -> { - presenter.categories.getOrNull(view_pager.currentItem)?.let { - LibraryUpdateService.start(activity, true, it) - } - } R.id.action_edit_categories -> { val intent = CategoryActivity.newIntent(activity) startActivity(intent) diff --git a/app/src/main/res/menu/library.xml b/app/src/main/res/menu/library.xml index ff7f514ee..bb669a95d 100644 --- a/app/src/main/res/menu/library.xml +++ b/app/src/main/res/menu/library.xml @@ -35,11 +35,6 @@ android:icon="@drawable/ic_refresh_white_24dp" app:showAsAction="ifRoom" /> - - Delete Update Update library - Update active category Edit Add category Edit categories