1
0
Fork 0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2025-10-02 17:29:31 +02:00

Merge pull request #12642 from Stypox/fireos-SAF

This commit is contained in:
Stypox 2025-10-01 16:28:12 +02:00 committed by GitHub
commit 3a2d427a46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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