mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-05-02 11:41:24 +00:00
Changes for Android 9 (Pie)
* validate the stored file before start the mission * add warning on StoredFileHelper.java * simplify the communication between MissionAdapter and DownloadManagerService.java since shares the same looper * simplify setVisible() "start/pause all downloads" buttons logic
This commit is contained in:
@@ -251,6 +251,7 @@ public class StoredFileHelper implements Serializable {
|
||||
public boolean existsAsFile() {
|
||||
if (source == null) return false;
|
||||
|
||||
// WARNING: DocumentFile.exists() and DocumentFile.isFile() methods are slow
|
||||
boolean exists = docFile == null ? ioFile.exists() : docFile.exists();
|
||||
boolean isFile = docFile == null ? ioFile.isFile() : docFile.isFile();// ¿docFile.isVirtual() means is no-physical?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user