vitorpamplona / amethyst

Nostr client for Android
MIT License
1.13k stars 155 forks source link

[FEATURE REQUEST] GIF keyboard support #138

Open kirillkovalenko opened 1 year ago

kirillkovalenko commented 1 year ago

Currently, if I try to insert an animated GIF from keyboard's GIF section I get an error message Amethyst doesn't support image insertion here.

I've found a potentially related discussions on SO https://stackoverflow.com/questions/48108889/gboard-enable-gif-insertion-on-edittext https://stackoverflow.com/questions/57476177/app-name-doesnt-support-image-insertation-here

I hereby offer 10000 sats bounty for implementing this support.

Radiokot commented 1 year ago

Hi everyone. I tried to implement it, but have figured out that it is currently impossible to do with Compose text fields. You have to instantiate a classic EditText and set up the input connection for it, and I don't feel confident enough about it, especially binding the EditText to the Compose viewmodel state.

It is sad that Compose is pushed so hard as a replacement for classic Android views, but then at some point you end up with something being simply missing in the implementation.

See: