mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-28 04:20:20 +02:00
refactor: debug messages
This commit is contained in:
parent
525965eff7
commit
cdc0badb4a
@ -369,7 +369,6 @@ class MediaDownloader : Feature("MediaDownloader", loadParams = FeatureLoadParam
|
||||
|
||||
//download the message content
|
||||
try {
|
||||
context.shortToast("Retriving message media")
|
||||
var inputStream: InputStream = CdnDownloader.downloadWithDefaultEndpoints(urlKey) ?: return
|
||||
inputStream = EncryptionUtils.decryptInputStreamFromArroyo(
|
||||
inputStream,
|
||||
@ -427,7 +426,7 @@ class MediaDownloader : Feature("MediaDownloader", loadParams = FeatureLoadParam
|
||||
) { dialog: DialogInterface, _: Int -> dialog.dismiss() }
|
||||
context.runOnUiThread { builder.show() }
|
||||
}.onFailure {
|
||||
context.shortToast("Failed to create preview: ${it.message}")
|
||||
context.shortToast("Failed to create preview: $it")
|
||||
xposedLog(it)
|
||||
}
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user