Skip to content

Commit 4e9a480

Browse files
committed
Enforce using SAF on FireOS TVs with Android 10+
Even if SAF is bugged there, there is no other way to open a file dialog, since NewPipe does not have permissions, see #10643
1 parent eed09f8 commit 4e9a480

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

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

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

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

0 commit comments

Comments
 (0)