Support all images

This commit is contained in:
Philipp Heckel 2022-02-13 13:52:55 -05:00
parent 944ee3eb67
commit 36bc5854b3
2 changed files with 5 additions and 3 deletions

View file

@ -156,10 +156,11 @@ class ShareActivity : AppCompatActivity() {
// Incoming intent
val intent = intent ?: return
val type = intent.type ?: return
if (intent.action != Intent.ACTION_SEND) return
if (intent.type == "text/plain") {
if (type == "text/plain") {
handleSendText(intent)
} else if (supportedImage(intent.type)) {
} else if (type.startsWith("image/")) {
handleSendImage(intent)
} else {
handleSendFile(intent)

View file

@ -1,6 +1,7 @@
Features:
* Dark theme: Improvements around style and contrast (#119, thanks @kzshantonu for reporting)
* Automatically delete notifications (#71, thanks @arjan-s for reporting)
* Share to topic feature (#131, thanks u/emptymatrix for reporting)
* Dark theme: Improvements around style and contrast (#119, thanks @kzshantonu for reporting)
Bug fixes:
* Do not attempt to download attachments if they are already expired (#135)