From dae93da96ddddfc888deed5aa38126c8d4bd4b42 Mon Sep 17 00:00:00 2001 From: Rickard Zettervall Date: Thu, 19 Sep 2019 12:25:32 +0200 Subject: [PATCH] update documentation for Note equals method --- app/src/main/java/tech/zettervall/notes/models/Note.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/tech/zettervall/notes/models/Note.java b/app/src/main/java/tech/zettervall/notes/models/Note.java index cf7084f..bee0c9e 100644 --- a/app/src/main/java/tech/zettervall/notes/models/Note.java +++ b/app/src/main/java/tech/zettervall/notes/models/Note.java @@ -192,13 +192,11 @@ public void setFavorite(boolean favorite) { } /** - * Compare contents for diff check in Adapter, determines whether to update the item - * in adapter. Whenever modifiedEpoch changed it means that the Note text fields was - * modified. We also need to check if favorite status or notificationEpoch changed - * because the adapter displays an icon for those. + * Compare contents for diff check in adapter, + * determines whether to update the item in adapter. * * @param obj Note to compare to this - * @return true when contents are the same + * @return true when contents are the same, false = adapter will update */ @Override public boolean equals(@Nullable Object obj) {