Loading media/java/android/media/RingtoneManager.java +9 −7 Original line number Diff line number Diff line Loading @@ -663,6 +663,7 @@ public class RingtoneManager { // Stream selected ringtone into cache so it's available for playback // when CE storage is still locked if (ringtoneUri != null) { final ContentResolver cr = context.getContentResolver(); final Uri cacheUri = getCacheForType(type); try (InputStream in = cr.openInputStream(ringtoneUri); Loading @@ -672,6 +673,7 @@ public class RingtoneManager { Log.w(TAG, "Failed to cache ringtone: " + e); } } } private static String getSettingForType(int type) { if ((type & TYPE_RINGTONE) != 0) { Loading Loading
media/java/android/media/RingtoneManager.java +9 −7 Original line number Diff line number Diff line Loading @@ -663,6 +663,7 @@ public class RingtoneManager { // Stream selected ringtone into cache so it's available for playback // when CE storage is still locked if (ringtoneUri != null) { final ContentResolver cr = context.getContentResolver(); final Uri cacheUri = getCacheForType(type); try (InputStream in = cr.openInputStream(ringtoneUri); Loading @@ -672,6 +673,7 @@ public class RingtoneManager { Log.w(TAG, "Failed to cache ringtone: " + e); } } } private static String getSettingForType(int type) { if ((type & TYPE_RINGTONE) != 0) { Loading