Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Double the distance required to trigger category update and remove overflow menu setting

Cette révision appartient à :
len 2016-05-12 15:30:57 +02:00
Parent 0ad9e4af0b
révision 88e64c878b
4 fichiers modifiés avec 2 ajouts et 11 suppressions

Voir le fichier

@ -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 {

Voir le fichier

@ -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)

Voir le fichier

@ -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"

Voir le fichier

@ -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>