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<LibraryPresenter>(), 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" /> - <item - android:id="@+id/action_update_category" - android:title="@string/action_update_category" - app:showAsAction="never" /> - <item android:id="@+id/action_edit_categories" android:title="@string/action_edit_categories" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ee70abb3f..2fe654d22 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -28,7 +28,6 @@ <string name="action_delete">Delete</string> <string name="action_update">Update</string> <string name="action_update_library">Update library</string> - <string name="action_update_category">Update active category</string> <string name="action_edit">Edit</string> <string name="action_add_category">Add category</string> <string name="action_edit_categories">Edit categories</string>