Skip to content

Commit 8ad7bf6

Browse files
committed
Delete saveImmediate warnings & add comments
1 parent 898a936 commit 8ad7bf6

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

app/src/main/java/org/schabi/newpipe/local/bookmark/BookmarkFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public final class BookmarkFragment extends BaseLocalListFragment<List<PlaylistL
6666
/* Have the bookmarked playlists been fully loaded from db */
6767
private AtomicBoolean isLoadingComplete;
6868

69+
/* Gives enough time to avoid interrupting user sorting operations */
6970
private DebounceSaver debounceSaver;
7071

7172
private List<Pair<Long, LocalItem.LocalItemType>> deletedItems;
@@ -385,8 +386,6 @@ public void saveImmediate() {
385386
// List must be loaded and modified in order to save
386387
if (isLoadingComplete == null || debounceSaver == null
387388
|| !isLoadingComplete.get() || !debounceSaver.getIsModified()) {
388-
Log.w(TAG, "Attempting to save playlists in bookmark when bookmark "
389-
+ "is not loaded or playlists not modified");
390389
return;
391390
}
392391

app/src/main/java/org/schabi/newpipe/local/playlist/LocalPlaylistFragment.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,6 @@ public void saveImmediate() {
621621
// List must be loaded and modified in order to save
622622
if (isLoadingComplete == null || debounceSaver == null
623623
|| !isLoadingComplete.get() || !debounceSaver.getIsModified()) {
624-
Log.w(TAG, "Attempting to save playlist when local playlist "
625-
+ "is not loaded or not modified: playlist id=[" + playlistId + "]");
626624
return;
627625
}
628626

0 commit comments

Comments
 (0)