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

Commit 7c6c3f8b 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

am: 2e92e5c3

Change-Id: I36e7f3d6787deb0c1efdcdaf55d209f55dcdc625
parents ea4442a3 2e92e5c3
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);