diff --git a/app/src/main/java/com/chiller3/bcr/Notifications.kt b/app/src/main/java/com/chiller3/bcr/Notifications.kt index 8461a96ae..5f5b8ae3b 100644 --- a/app/src/main/java/com/chiller3/bcr/Notifications.kt +++ b/app/src/main/java/com/chiller3/bcr/Notifications.kt @@ -192,8 +192,8 @@ class Notifications( val file = outputFile.uri.toFile() - return file.relativeToOrNull(prefs.directBootInProgressDir) != null - && file.relativeToOrNull(prefs.directBootCompletedDir) != null + return file.startsWith(prefs.directBootInProgressDir) + || file.startsWith(prefs.directBootCompletedDir) } /**