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

Commit 2e92e5c3 authored by Daisuke Teranishi's avatar Daisuke Teranishi Committed by android-build-merger
Browse files

Merge "Use correct filename when adding to ringtone" am: daff857f

am: 24062f05

Change-Id: Id9d89491c5604b1611b22f215827f55de98f8ac2
parents 92b686dd 24062f05
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -952,7 +952,8 @@ public class RingtoneManager {

        // Find a filename. Throws FileNotFoundException if none can be found.
        final File outFile = Utils.getUniqueExternalFile(mContext, subdirectory,
                Utils.getFileDisplayNameFromUri(mContext, fileUri), mimeType);
                FileUtils.buildValidFatFilename(Utils.getFileDisplayNameFromUri(mContext, fileUri)),
                        mimeType);

        // Copy contents to external ringtone storage. Throws IOException if the copy fails.
        try (final InputStream input = mContext.getContentResolver().openInputStream(fileUri);