Skip to content

Commit

Permalink
Fix #663 Swipe to delete gesture is way to sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-niedermann committed Jan 6, 2020
1 parent 27e2e46 commit f3c4f57
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Expand Up @@ -13,8 +13,8 @@ android {
applicationId "it.niedermann.owncloud.notes"
minSdkVersion 14
targetSdkVersion 28
versionCode 64
versionName "2.4.1"
versionCode 65
versionName "2.4.2"
// vectorDrawables.useSupportLibrary = true
}
buildTypes {
Expand Down
Expand Up @@ -635,6 +635,11 @@ public void onChildDraw(@NonNull Canvas c, @NonNull RecyclerView recyclerView, @
getDefaultUIUtil().onDraw(c, recyclerView, noteViewHolder.noteSwipeable, dX, dY, actionState, isCurrentlyActive);
}

@Override
public float getSwipeEscapeVelocity(float defaultValue) {
return defaultValue * 3;
}

@Override
public void clearView(@NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder) {
getDefaultUIUtil().clearView(((ItemAdapter.NoteViewHolder) viewHolder).noteSwipeable);
Expand Down
4 changes: 4 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/65.txt
@@ -0,0 +1,4 @@
- #663 Swipe to delete gesture is way to sensitive

Requires at least Files app¹ version 3.9.0
¹ https://github.com/nextcloud/android
Empty file.

0 comments on commit f3c4f57

Please sign in to comment.