mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Double the distance required to trigger category update and remove overflow menu setting
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user