vitorpamplona / amethyst

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

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

Open yojimble opened 2 weeks ago

yojimble commented 2 weeks 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 2 weeks ago

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

yojimble commented 2 weeks 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 weeks ago

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

yojimble commented 2 weeks ago

Oooo.. Android 8!!

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

davotoula commented 2 weeks 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 2 weeks 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 2 weeks ago

Try this debug apk please.

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

yojimble commented 2 weeks ago

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

davotoula commented 2 weeks 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 2 weeks 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 2 weeks 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!

yojimble commented 2 weeks ago

Hiya, I don't have that feature, under battery there is just a list of apps running in the background with the option to close them

davotoula commented 2 weeks ago

I think Samsung does it differently.

Do you have anything like this?

QNSjH4soLLy68kRYb9bicW-970-80.jpg

yojimble commented 2 weeks ago

ah right yes I have something 'app power monitor' which I can manually press a button to shut down apps running in the background... then two lists, 'always sleeping' and 'unmonitored'... which says it allows apps to use as much power as they want all the time

davotoula commented 2 weeks ago

Yes, put the regular amethyst into unmonitored and try one last time please.

If that doesn't work I will try and get the other fix in.

yojimble commented 2 weeks ago

ok done, still popping up