-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: OS/hardware back button stops working sometimes (does not work, can't go back) #6276
Comments
@akshayaurora any idea? |
Might be related to: |
Right, that seems related, thanks. |
@ecdsa @SomberNight The patch is small https://hg.libsdl.org/SDL/rev/b5cd5e1e4440 I don't see why we can't just add this patch to p4a, instead of moving to sdl2 2.0.10 completely., I will check with inclement and try to get this patch integrated. |
@ecdsa @SomberNight setting android.api=27 instead of 28 seems to bypass this issue. Without the need for the patch above. The patch itself does not work when using api=28. Further investigation needed. If Electrum is not using anything specific to api 28 then I’d suggest using android.api = 27 for now. |
@akshayaurora Google Play mandates a lower bound of Although, I can' t imagine (although p4a kinda fuzzes the distinction: https://github.com/kivy/python-for-android/blob/36825d7ffe91eebcd12992911ddf7b5a5d87ccd7/pythonforandroid/bootstraps/common/build/templates/build.tmpl.gradle#L32-L36) |
I've just compiled two apks and apparently it is about the An apk with |
I think I have figured it out. If it's related to Here are some potentially relevant changes re that: Also see these SO questions: Then the next clue was
If the user pulls down and up the statusbar, So what we need is to call |
@SomberNight nice job! |
Ok so that patch (SomberNight/python-for-android@c571db9) does not fix everything... I have been reproducing via method (1):
Thomas has a different method (2):
Method (2) does not trigger the bug reliably for me :/ but nevertheless the above patch only fixes method (1). |
for me (2) triggers it reliably. Actually, it is triggered by any popup window. |
I can only trigger it with method (2) right after the application opens. See also method (3):
The fact that method (3) reproduces the issue means that the application does not get focus when it opens, from which method (2) also follows. |
just to be clear: in my case too, it happens only right after the application opens. when I said 'reliably', I meant that. |
when software keyboard disappears, main view would not have focus see method (1) in spesmilo/electrum#6276 (comment)
fixes the app-startup case of not having focus see methods (2) and (3) in spesmilo/electrum#6276 (comment)
when software keyboard disappears, main view would not have focus see method (1) in spesmilo/electrum#6276 (comment)
fixes the app-startup case of not having focus see methods (2) and (3) in spesmilo/electrum#6276 (comment)
note: I've tried SomberNight/python-for-android@4f7bdf1 It probabilistically helped with method (3), but not with method (2) actually; I think after we transition from the wallet-select-dialog to a loaded wallet focus might be lost again for some reason. |
see methods (2) and (3) in spesmilo/electrum#6276 (comment)
I have another way to reproduce this, method (4):
|
when software keyboard disappears, main view would not have focus see method (1) in spesmilo/electrum#6276 (comment)
see methods (2) and (3) in spesmilo/electrum#6276 (comment)
when software keyboard disappears, main view would not have focus see method (1) in spesmilo/electrum#6276 (comment)
see methods (2) and (3) in spesmilo/electrum#6276 (comment)
I can replicate. Might be related to: |
when software keyboard disappears, main view would not have focus see method (1) in spesmilo/electrum#6276 (comment)
see methods (2) and (3) in spesmilo/electrum#6276 (comment)
when software keyboard disappears, main view would not have focus see method (1) in spesmilo/electrum#6276 (comment)
see methods (2) and (3) in spesmilo/electrum#6276 (comment)
when software keyboard disappears, main view would not have focus see method (1) in spesmilo/electrum#6276 (comment)
see methods (2) and (3) in spesmilo/electrum#6276 (comment)
On Android, the back button ('<') sometimes stops working.
This might be a bug with kivy / python-for-android (or even further upstream); or perhaps we are misusing some API that causes this.
Workaround: if you pull down the statusbar it will start working again.
The text was updated successfully, but these errors were encountered: