Skip to content

Commit 033846d

Browse files
Enforce using SAF on FireOS TVs with Android 10+
Author: Stypox Even if SAF is bugged there, there is no other way to open a file dialog, since NewPipe does not have permissions. Co-Authored-By: Stypox <stypox@pm.me>
1 parent 5bf63bd commit 033846d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

app/src/main/java/org/schabi/newpipe/settings/NewPipeSettings.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ private static String getNewPipeChildFolderPathForDir(final File dir) {
105105
}
106106

107107
public static boolean useStorageAccessFramework(final Context context) {
108-
// There's a FireOS bug which prevents SAF open/close dialogs from being confirmed with a
109-
// remote (see #6455).
110-
if (DeviceUtils.isFireTv()) {
111-
return false;
112-
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
108+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
113109
return true;
110+
} else if (DeviceUtils.isFireTv()) {
111+
// There's a FireOS bug which prevents SAF open/close dialogs from being confirmed with
112+
// a remote (see #6455).
113+
return false;
114114
}
115115

116116
final String key = context.getString(R.string.storage_use_saf);

0 commit comments

Comments
 (0)