vitorpamplona / amethyst

Nostr client for Android
MIT License
1.16k stars 158 forks source link

[BUG] Onscreen keyboard pops up all over the place #1166

Open yojimble opened 3 days ago

yojimble commented 3 days ago

When browsing nostr the phone keyboard has started popping up randomly, renders the app unusable as you never know when it will show up to get in the way

https://github.com/user-attachments/assets/eef34eab-91f9-4ed9-8975-f5997386d516

To Reproduce use the app

Expected behavior keyboard pops up in response to text boxes only

amethyst version v0.92.7

davotoula commented 3 days ago

What phone, amethyst Version (google or fdroid) and keyboard (built in gboard or third party) are you using?

yojimble commented 2 days ago

it's a samsung galaxy A5, android 8, amethyst from play store, samsung built in keyboard although I have tried others and they all do it

davotoula commented 2 days ago

Oooo.. Android 8! I'll see if I can reproduce it!

yojimble commented 1 day ago

Oooo.. Android 8!!

thaaanks! 🤪 tryin to keep it going for as long as possible!

davotoula commented 1 day ago

I have seen several mentions online about a "popping up Samsung onscreen keyboard". Can you try the suggested fixes?

There is also a minor code change we can try out. Do you know how to manually install an app from a download from Github so that we can try a "debug" version that will not replace your main Amethyst app?

yojimble commented 1 day ago

Super thanks, I have installed gboard and possibly it is popping up less - although still when clicking my own profile (viewing not editing)

I know how to install an .apk

davotoula commented 1 day ago

Try this debug apk please.

https://github.com/vitorpamplona/amethyst/actions/runs/11693860560/artifacts/2149519494

yojimble commented 23 hours ago

Hi, this seems to have worked for the inbuilt samsung keyboard thankyou! where can I send a zap????

davotoula commented 21 hours ago

@yojimble cool it worked. I need to discuss with Vitor whether we can merge this safely to main amethyst.

In the meantime, can you also try removing the main amethyst from memory management (not sure android 8 had it) and try it again?

yojimble commented 17 hours ago

I don't know if it has anything called that, I could force close it and clear the cache... then reset my emojis

davotoula commented 14 hours ago

You will find Battery Optimization in your main android settings:

Screenshot_20241106_202522

Please find the normal Ametyst App (NOT debug) and select "not optimized":

Screenshot_20241106_202612

Then try the normal Amathyst again to see if the popping up screen issue is improved.

Please report back!