From 88e64c878b7c208af23e33ae5bc5616a84fe10f6 Mon Sep 17 00:00:00 2001 From: len Date: Thu, 12 May 2016 15:30:57 +0200 Subject: [PATCH] Double the distance required to trigger category update and remove overflow menu setting --- .../kanade/tachiyomi/ui/library/LibraryCategoryFragment.kt | 2 ++ .../java/eu/kanade/tachiyomi/ui/library/LibraryFragment.kt | 5 ----- app/src/main/res/menu/library.xml | 5 ----- app/src/main/res/values/strings.xml | 1 - 4 files changed, 2 insertions(+), 11 deletions(-) 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 0a6e689356..598f4d9467 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 b68b4bacda..4e60d1682b 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 ff7f514ee0..bb669a95df 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