Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6da8a01b authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

Added some IDE hint annotations

parent 0cfcb31f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ public class ItemAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> i
        return !selected.contains(position) && selected.add(position);
    }

    public void clearSelection(RecyclerView recyclerView) {
    public void clearSelection(@NonNull RecyclerView recyclerView) {
        for (Integer i : getSelected()) {
            RecyclerView.ViewHolder viewHolder = recyclerView.findViewHolderForAdapterPosition(i);
            if (viewHolder != null) {
+2 −1
Original line number Diff line number Diff line
@@ -37,7 +37,8 @@ public class NoteViewGridHolder extends NoteViewHolder {
        binding.noteExcerpt.setVisibility(TextUtils.isEmpty(note.getExcerpt()) ? GONE : VISIBLE);
    }

    @Nullable
    public View getNoteSwipeable() {
        throw new UnsupportedOperationException(NoteViewGridHolder.class.getSimpleName() + " does not support swiping");
        return null;
    }
}
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -114,5 +114,6 @@ public abstract class NoteViewHolder extends RecyclerView.ViewHolder {

    public abstract void showSwipe(boolean left);

    @Nullable
    public abstract View getNoteSwipeable();
}
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ public class NoteViewHolderWithExcerpt extends NoteViewHolder {
        bindSearchableContent(context, binding.noteExcerpt, searchQuery, note.getExcerpt(), mainColor);
    }

    @NonNull
    public View getNoteSwipeable() {
        return binding.noteSwipeable;
    }
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ public class NoteViewHolderWithoutExcerpt extends NoteViewHolder {
        bindSearchableContent(context, binding.noteTitle, searchQuery, note.getTitle(), mainColor);
    }

    @NonNull
    public View getNoteSwipeable() {
        return binding.noteSwipeable;
    }