Loading media/java/android/media/RingtoneManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package android.media; import android.Manifest; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.RequiresPermission; Loading Loading @@ -573,12 +572,13 @@ public class RingtoneManager { FileUtils.closeQuietly(cursor); throw new FileNotFoundException("No item found for " + baseUri); } else if (cursor.getCount() > 1) { int resultCount = cursor.getCount(); // Find more than 1 result. // We are not sure which one is the right ringtone file so just abandon this case. FileUtils.closeQuietly(cursor); throw new FileNotFoundException( "Find multiple ringtone candidates by title+ringtone_type query: count: " + cursor.getCount()); + resultCount); } if (cursor.moveToFirst()) { ringtoneUri = ContentUris.withAppendedId(baseUri, cursor.getLong(0)); Loading Loading
media/java/android/media/RingtoneManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package android.media; import android.Manifest; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.RequiresPermission; Loading Loading @@ -573,12 +572,13 @@ public class RingtoneManager { FileUtils.closeQuietly(cursor); throw new FileNotFoundException("No item found for " + baseUri); } else if (cursor.getCount() > 1) { int resultCount = cursor.getCount(); // Find more than 1 result. // We are not sure which one is the right ringtone file so just abandon this case. FileUtils.closeQuietly(cursor); throw new FileNotFoundException( "Find multiple ringtone candidates by title+ringtone_type query: count: " + cursor.getCount()); + resultCount); } if (cursor.moveToFirst()) { ringtoneUri = ContentUris.withAppendedId(baseUri, cursor.getLong(0)); Loading