mirror of
https://github.com/binwiederhier/ntfy-android.git
synced 2024-05-18 11:32:30 +12:00
Support all images
This commit is contained in:
parent
944ee3eb67
commit
36bc5854b3
|
@ -156,10 +156,11 @@ class ShareActivity : AppCompatActivity() {
|
||||||
|
|
||||||
// Incoming intent
|
// Incoming intent
|
||||||
val intent = intent ?: return
|
val intent = intent ?: return
|
||||||
|
val type = intent.type ?: return
|
||||||
if (intent.action != Intent.ACTION_SEND) return
|
if (intent.action != Intent.ACTION_SEND) return
|
||||||
if (intent.type == "text/plain") {
|
if (type == "text/plain") {
|
||||||
handleSendText(intent)
|
handleSendText(intent)
|
||||||
} else if (supportedImage(intent.type)) {
|
} else if (type.startsWith("image/")) {
|
||||||
handleSendImage(intent)
|
handleSendImage(intent)
|
||||||
} else {
|
} else {
|
||||||
handleSendFile(intent)
|
handleSendFile(intent)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
Features:
|
Features:
|
||||||
* Dark theme: Improvements around style and contrast (#119, thanks @kzshantonu for reporting)
|
|
||||||
* Automatically delete notifications (#71, thanks @arjan-s 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:
|
Bug fixes:
|
||||||
* Do not attempt to download attachments if they are already expired (#135)
|
* Do not attempt to download attachments if they are already expired (#135)
|
||||||
|
|
Loading…
Reference in a new issue