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

Commit 2fbacb0e authored by Ian Baker's avatar Ian Baker Committed by Automerger Merge Worker
Browse files

Merge "RingtoneManager#setActualDefaultRingtone() open OutputStream of...

Merge "RingtoneManager#setActualDefaultRingtone() open OutputStream of cacheUri with "wt" mode" am: f922e9fa am: a44c29cd am: 5854401f am: 6bdaf8fc

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2447583



Change-Id: I6555eb06dfd3e9985febb7873592825cd34ee405
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents f02468b1 6bdaf8fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -849,7 +849,7 @@ public class RingtoneManager {
        if (ringtoneUri != null) {
            final Uri cacheUri = getCacheForType(type, context.getUserId());
            try (InputStream in = openRingtone(context, ringtoneUri);
                    OutputStream out = resolver.openOutputStream(cacheUri)) {
                    OutputStream out = resolver.openOutputStream(cacheUri, "wt")) {
                FileUtils.copy(in, out);
            } catch (IOException e) {
                Log.w(TAG, "Failed to cache ringtone: " + e);