Delete saveImmediate warnings & add comments

This commit is contained in:
GGAutomaton 2022-06-23 23:31:56 +08:00
parent 898a936064
commit 8ad7bf60d7
2 changed files with 1 additions and 4 deletions

View file

@ -66,6 +66,7 @@ public final class BookmarkFragment extends BaseLocalListFragment<List<PlaylistL
/* Have the bookmarked playlists been fully loaded from db */
private AtomicBoolean isLoadingComplete;
/* Gives enough time to avoid interrupting user sorting operations */
private DebounceSaver debounceSaver;
private List<Pair<Long, LocalItem.LocalItemType>> deletedItems;
@ -385,8 +386,6 @@ public final class BookmarkFragment extends BaseLocalListFragment<List<PlaylistL
// List must be loaded and modified in order to save
if (isLoadingComplete == null || debounceSaver == null
|| !isLoadingComplete.get() || !debounceSaver.getIsModified()) {
Log.w(TAG, "Attempting to save playlists in bookmark when bookmark "
+ "is not loaded or playlists not modified");
return;
}

View file

@ -621,8 +621,6 @@ public class LocalPlaylistFragment extends BaseLocalListFragment<List<PlaylistSt
// List must be loaded and modified in order to save
if (isLoadingComplete == null || debounceSaver == null
|| !isLoadingComplete.get() || !debounceSaver.getIsModified()) {
Log.w(TAG, "Attempting to save playlist when local playlist "
+ "is not loaded or not modified: playlist id=[" + playlistId + "]");
return;
}