Browse Source

Added TODO comments

pull/71/head
babaliaris 4 years ago
parent
commit
f1cd0435c9
  1. 2
      app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/BookmarksAdapter.java
  2. 1
      app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/BookmarksFragment.java

2
app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/BookmarksAdapter.java

@ -119,6 +119,8 @@ public class BookmarksAdapter extends DragItemAdapter<ArrayList<Bookmark>, Bookm
//Remove Item. //Remove Item.
//TODO: AFTER DELETION, UPDATE THE ORDER IN THE PREFERENCES OF ALL
// ALL THE BOOKMARKS UNDER THIS ONE THAT HAS BEEN DELETED!
holder.m_removeView.setOnClickListener(v -> { holder.m_removeView.setOnClickListener(v -> {
//Get fragment's activity. //Get fragment's activity.

1
app/src/main/java/gr/thmmy/mthmmy/activities/bookmarks/BookmarksFragment.java

@ -129,6 +129,7 @@ public class BookmarksFragment extends Fragment {
// or closes the app, the order of the bookmarks will be lost. // or closes the app, the order of the bookmarks will be lost.
// make sure after the following swapping, to apply the changes // make sure after the following swapping, to apply the changes
// in the actual data model of the bookmarks. // in the actual data model of the bookmarks.
// AFTER SWAPPING UPDATE THE ORDER OF THOSE TWO IN THE PREFERENCES.
if (fromPosition != toPosition) if (fromPosition != toPosition)
{ {

Loading…
Cancel
Save