1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-04-23 07:11:23 +00:00

Use reqireContext(), requireActivity() instead of getters

This commit is contained in:
TobiGr
2021-06-05 01:16:48 +02:00
parent 79efffe12f
commit abc354f516
4 changed files with 7 additions and 6 deletions

View File

@@ -275,7 +275,7 @@ public class StoredFileHelper implements Serializable {
if (!docTree.canRead() || !docTree.canWrite()) return false;
try {
docFile = createSAF(context, srcType, srcName);
if (docFile == null || docFile.getName() == null) return false;
if (docFile.getName() == null) return false;
result = true;
} catch (IOException e) {
return false;