mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-29 13:00:17 +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
|
//download the message content
|
||||||
try {
|
try {
|
||||||
context.shortToast("Retriving message media")
|
|
||||||
var inputStream: InputStream = CdnDownloader.downloadWithDefaultEndpoints(urlKey) ?: return
|
var inputStream: InputStream = CdnDownloader.downloadWithDefaultEndpoints(urlKey) ?: return
|
||||||
inputStream = EncryptionUtils.decryptInputStreamFromArroyo(
|
inputStream = EncryptionUtils.decryptInputStreamFromArroyo(
|
||||||
inputStream,
|
inputStream,
|
||||||
@ -427,7 +426,7 @@ class MediaDownloader : Feature("MediaDownloader", loadParams = FeatureLoadParam
|
|||||||
) { dialog: DialogInterface, _: Int -> dialog.dismiss() }
|
) { dialog: DialogInterface, _: Int -> dialog.dismiss() }
|
||||||
context.runOnUiThread { builder.show() }
|
context.runOnUiThread { builder.show() }
|
||||||
}.onFailure {
|
}.onFailure {
|
||||||
context.shortToast("Failed to create preview: ${it.message}")
|
context.shortToast("Failed to create preview: $it")
|
||||||
xposedLog(it)
|
xposedLog(it)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user