code cleanup
This commit is contained in:
parent
2de2d14ad0
commit
cb694d537f
1 changed files with 3 additions and 1 deletions
|
|
@ -269,10 +269,12 @@ class NotifiableEventResolver @Inject constructor(
|
||||||
return fileResult
|
return fileResult
|
||||||
.onFailure {
|
.onFailure {
|
||||||
Timber.tag(loggerTag.value).e(it, "Failed to download image for notification")
|
Timber.tag(loggerTag.value).e(it, "Failed to download image for notification")
|
||||||
}.getOrNull()?.let { mediaFile ->
|
}
|
||||||
|
.map { mediaFile ->
|
||||||
val authority = "${context.packageName}.notifications.fileprovider"
|
val authority = "${context.packageName}.notifications.fileprovider"
|
||||||
FileProvider.getUriForFile(context, authority, mediaFile)
|
FileProvider.getUriForFile(context, authority, mediaFile)
|
||||||
}
|
}
|
||||||
|
.getOrNull()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue