1
0
Fork 0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2025-10-03 09:49:21 +02:00

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
This commit is contained in:
Stypox 2025-09-17 12:23:37 +02:00
parent eed09f8a1d
commit 4e9a480fdd
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23

View file

@ -103,12 +103,12 @@ public final class NewPipeSettings {
} }
public static boolean useStorageAccessFramework(final Context context) { public static boolean useStorageAccessFramework(final Context context) {
// There's a FireOS bug which prevents SAF open/close dialogs from being confirmed with a if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
// remote (see #6455).
if (DeviceUtils.isFireTv()) {
return false;
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
return true; return true;
} else if (DeviceUtils.isFireTv()) {
// There's a FireOS bug which prevents SAF open/close dialogs from being confirmed with
// a remote (see #6455).
return false;
} }
final String key = context.getString(R.string.storage_use_saf); final String key = context.getString(R.string.storage_use_saf);