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

Commit f922e9fa authored by Ian Baker's avatar Ian Baker Committed by Gerrit Code Review
Browse files

Merge "RingtoneManager#setActualDefaultRingtone() open OutputStream of cacheUri with "wt" mode"

parents a0f6a975 111ad957
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -841,7 +841,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);