Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09aca02c authored by Zimuzo Ezeozue's avatar Zimuzo Ezeozue Committed by Android (Google) Code Review
Browse files

Merge "Use accept_original_media_format constant"

parents 56b6fad6 63064782
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1463,8 +1463,7 @@ public final class FileUtils {
            Uri uri = MediaStore.scanFile(resolver, realFile);
            if (uri != null) {
                Bundle opts = new Bundle();
                // TODO(b/158465539): Use API constant
                opts.putBoolean("android.provider.extra.ACCEPT_ORIGINAL_MEDIA_FORMAT", true);
                opts.putBoolean(MediaStore.EXTRA_ACCEPT_ORIGINAL_MEDIA_FORMAT, true);
                AssetFileDescriptor afd = resolver.openTypedAssetFileDescriptor(uri, "*/*", opts);
                Log.i(TAG, "Changed to modern format dataSource for: " + realFile);
                return afd.getFileDescriptor();