Loading app/src/main/java/it/niedermann/owncloud/notes/android/NotesListViewItemTouchHelper.java +2 −2 Original line number Diff line number Diff line Loading @@ -48,11 +48,11 @@ public class NotesListViewItemTouchHelper extends ItemTouchHelper { } /** * Disable swipe on sections * Disable swipe on sections and if grid view is enabled * * @param recyclerView RecyclerView * @param viewHolder RecyclerView.ViewHoler * @return 0 if section, otherwise super() * @return 0 if viewHolder is section or grid view is enabled, otherwise super() */ @Override public int getSwipeDirs(@NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder) { Loading app/src/main/java/it/niedermann/owncloud/notes/model/NoteViewGridHolder.java +2 −2 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ public class NoteViewGridHolder extends NoteViewHolder { } public void showSwipe(boolean left) { throw new UnsupportedOperationException(NoteViewGridHolder.class.getSimpleName() + " does not support swiping"); } public void bind(@NonNull DBNote note, boolean showCategory, int mainColor, int textColor, @Nullable CharSequence searchQuery) { Loading @@ -38,6 +38,6 @@ public class NoteViewGridHolder extends NoteViewHolder { } public View getNoteSwipeable() { return null; throw new UnsupportedOperationException(NoteViewGridHolder.class.getSimpleName() + " does not support swiping"); } } No newline at end of file app/src/main/java/it/niedermann/owncloud/notes/model/NoteViewHolderWithoutExcerpt.java +0 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ public class NoteViewHolderWithoutExcerpt extends NoteViewHolder { this.binding = binding; } public void showSwipe(boolean left) { binding.noteFavoriteLeft.setVisibility(left ? View.VISIBLE : View.INVISIBLE); binding.noteDeleteRight.setVisibility(left ? View.INVISIBLE : View.VISIBLE); Loading Loading
app/src/main/java/it/niedermann/owncloud/notes/android/NotesListViewItemTouchHelper.java +2 −2 Original line number Diff line number Diff line Loading @@ -48,11 +48,11 @@ public class NotesListViewItemTouchHelper extends ItemTouchHelper { } /** * Disable swipe on sections * Disable swipe on sections and if grid view is enabled * * @param recyclerView RecyclerView * @param viewHolder RecyclerView.ViewHoler * @return 0 if section, otherwise super() * @return 0 if viewHolder is section or grid view is enabled, otherwise super() */ @Override public int getSwipeDirs(@NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder) { Loading
app/src/main/java/it/niedermann/owncloud/notes/model/NoteViewGridHolder.java +2 −2 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ public class NoteViewGridHolder extends NoteViewHolder { } public void showSwipe(boolean left) { throw new UnsupportedOperationException(NoteViewGridHolder.class.getSimpleName() + " does not support swiping"); } public void bind(@NonNull DBNote note, boolean showCategory, int mainColor, int textColor, @Nullable CharSequence searchQuery) { Loading @@ -38,6 +38,6 @@ public class NoteViewGridHolder extends NoteViewHolder { } public View getNoteSwipeable() { return null; throw new UnsupportedOperationException(NoteViewGridHolder.class.getSimpleName() + " does not support swiping"); } } No newline at end of file
app/src/main/java/it/niedermann/owncloud/notes/model/NoteViewHolderWithoutExcerpt.java +0 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ public class NoteViewHolderWithoutExcerpt extends NoteViewHolder { this.binding = binding; } public void showSwipe(boolean left) { binding.noteFavoriteLeft.setVisibility(left ? View.VISIBLE : View.INVISIBLE); binding.noteDeleteRight.setVisibility(left ? View.INVISIBLE : View.VISIBLE); Loading