Skip to content

Commit d966bf6

Browse files
committed
fix #202: fallback to default ringtone when alarm audio is missing
1 parent e2e1c76 commit d966bf6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • app/src/main/kotlin/org/fossify/clock/extensions

app/src/main/kotlin/org/fossify/clock/extensions/Context.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ fun Context.isUriAccessible(uri: Uri): Boolean {
567567
return try {
568568
this.contentResolver.openAssetFileDescriptor(uri, "r")?.close()
569569
true
570-
} catch (e: Exception) {
570+
} catch (_: Exception) {
571571
false
572572
}
573573
}
@@ -577,7 +577,7 @@ fun Context.isUriAccessible(uriString: String): Boolean {
577577
return try {
578578
val uri = uriString.toUri()
579579
isUriAccessible(uri)
580-
} catch (e: Exception) {
580+
} catch (_: Exception) {
581581
false
582582
}
583583
}

0 commit comments

Comments
 (0)