Эх сурвалжийг харах

correct lower bound

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 6 жил өмнө
parent
commit
facf8a2aae

+ 1 - 1
src/main/java/com/owncloud/android/ui/adapter/NotificationListAdapter.java

@@ -235,7 +235,7 @@ public class NotificationListAdapter extends RecyclerView.Adapter<NotificationLi
             if (success) {
                 int position = holder.getAdapterPosition();
 
-                if (position > 0 && position < notificationsList.size()) {
+                if (position >= 0 && position < notificationsList.size()) {
                     notificationsList.remove(position);
                     notifyItemRemoved(position);
                 }