[Android] PlaylistActivity: remove dead code
Geoffrey Métais
git at videolan.org
Tue Feb 5 15:31:13 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 5 15:30:15 2019 +0100| [3aab1f8a1af4db89e5f005cb25f94b5124993217] | committer: Geoffrey Métais
PlaylistActivity: remove dead code
> https://code.videolan.org/videolan/vlc-android/commit/3aab1f8a1af4db89e5f005cb25f94b5124993217
---
vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java | 2 --
1 file changed, 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java b/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java
index b5f2561a4..eab638b5a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java
@@ -344,13 +344,11 @@ public class PlaylistActivity extends AudioPlayerContainerActivity implements IE
@Override
public void run() {
final LinkedList<String> foldersToReload = new LinkedList<>();
- final LinkedList<String> mediaPaths = new LinkedList<>();
for (MediaWrapper media : mw.getTracks()) {
String path = media.getUri().getPath();
String parentPath = FileUtils.getParent(path);
if (FileUtils.deleteFile(path) && media.getId() > 0L && !foldersToReload.contains(parentPath)) {
foldersToReload.add(parentPath);
- mediaPaths.add(media.getLocation());
} else UiTools.snacker(mBinding.getRoot(), getString(R.string.msg_delete_failed, media.getTitle()));
}
for (String folder : foldersToReload) mMediaLibrary.reload(folder);
More information about the Android
mailing list