Skip to content
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

Feature/android #832

Closed

Conversation

nefarius2001
Copy link
Contributor

fix for bug ui on android
contributes to #83

Bug description:
Dialogs like the Settings- or Chat-Window pop ob in Foreground and fullscreen. After closing them via system's backbutton, they do not show propperly again, but still obstruct the main-window when opened. Closing those dialogs via close() makes them behave normally and reusable (noticed with the Connect-dialog)

@nefarius2001
Copy link
Contributor Author

solved bug when debugging.
did not solve but when deployed as release via apk

will reopen after further testing

@nefarius2001
Copy link
Contributor Author

working as expected
(I confused branches before)

@nefarius2001 nefarius2001 reopened this Jan 12, 2021
@pljones
Copy link
Collaborator

pljones commented Jan 12, 2021

Is there a Github automated build for Android? (And per supported CPU arch - and, I guess, possibly per version?)

Hm. This seems too easy but appears to be "the way":
https://dev.to/arifikhsan/how-to-use-github-actions-to-build-android-app-1il7

@corrados
Copy link
Contributor

Thanks for your code but I intend to implement it a bit different. I'll look at it when I have time (probably upcoming weekend) and create a branch for it. When I am ready it would be good if you could test my code.

corrados added a commit that referenced this pull request Jan 13, 2021
@corrados
Copy link
Contributor

corrados commented Jan 13, 2021

It was easier than I thought. I just created a new branch android_back_button_fix with my version of the fix: https://github.com/corrados/jamulus/compare/android_back_button_fix?expand=1

Can you please checkout that branch and test if it works ok for you on android?

@nefarius2001
Copy link
Contributor Author

Hm. This seems too easy but appears to be "the way":

too easy indeed, it fails for me: https://github.com/nefarius2001/jamulus/runs/1697511257?check_suite_focus=true
Thanks a lot for pointing out!

Can you please checkout that branch and test if it works ok for you on android?

will do.
@corrados can you say why you disabled the escape key? It was disabled for server-selection and chat only, now it would be for all dialogs. Is that intended?

@corrados
Copy link
Contributor

can you say why you disabled the escape key?

@pljones requested and implemented this some time ago. He was used to press the Esc key very often and unexpectably closed the dialog by this. It does not hurt if now other dialogs also do not close on the Esc key.

@nefarius2001
Copy link
Contributor Author

android_back_button_fix works for me.
Thanks, and nice solution.

Maybe on mobiles disabling the back-button in main menu would be desirable, to not accidentially close the program (lets do that only if/when desired)

@pljones
Copy link
Collaborator

pljones commented Jan 13, 2021

Maybe on mobiles disabling the back-button in main menu would be desirable, to not accidentially close the program (lets do that only if/when desired)

It might be nice not to exit the app - it should still be running and clicking its icon should reopen the main dialogue. But it should close the "window". That's pretty much how other apps seem to work on Android, anyway.

@nefarius2001 nefarius2001 deleted the feature/android branch January 18, 2021 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants