-
-
Notifications
You must be signed in to change notification settings - Fork 654
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: RealmScreen
unusable in landscape orientation when input is focused.
#4386
Comments
@chrisbobbe can I work on this issue ? |
@chrisbobbe , Actually what is happening that when you change the orientation from portrait to landscape and typed let say for eg "chat.zulip.org" or you typed an invalid URL and presses GO Button ( which is also available in the keypad in the portrait mode ) then it is also working but this time behind the keypad as in landscape mode the keypad covers the whole screen of mobile so we are not able to see the action behind the keypad but it is there . In different devices there are different keypads available In some keypads it is typed as "GO"(as in above case) in some device "GO" is represented by icon(as in your case). Also you can verify this thing by entering chat.zulip.org as URL or any URL or leave it blank then change your orientation from portrait to landscape and press "GO" button and now when you again comes back to portrait mode then see the expected result of the action—either an error message like "Cannot connect to server" if you have entered an invalid realm, or the auth screen for a valid realm. FIXIn my opinion this can be easily fixed by just using the @chrisbobbe plz comment |
Actually when the go button(in land scape Orientation) is pressed then there is a try and catch statement in "RealmScreen.js" which is asynchronous so we have to wait but ideal behavior must be this that whatever be the case first of all keypad must be closed in a synchronized manner so `Keyborad.remove()` must be called before the try catch statement. Fixes: zulip#4386
Actually when the go button(in land scape Orientation) is pressed then there is a try and catch statement in "RealmScreen.js" which is asynchronous so we have to wait but ideal behavior must be this that whatever be the case first of all keypad must be closed in a synchronized manner so `Keyborad.remove()` must be called before the try catch statement. Fixes: zulip#4386
Probably the thing to try is to not offer that full-screen input UI in the first place. I think that's what |
I discovered this while working on #4315, but then I found out that it was happening with or without the changes in #4315.
Reproduction recipe (works for me on the office Android device I'm using, a Samsung Galaxy S9):
Pressing "Go" does seem to have an effect, just not an immediately visible one. After pressing "Go", if I go back to portrait mode, I see the expected result of the action—either an error message like "Cannot connect to server" if I entered an invalid realm, or the auth screen for a valid realm.
The way I was able to see the realm screen without the input being focused is I entered a valid realm, submitted it, then hit "back" from the auth screen. When the input is not focused, things look more as I'd expect them to:
The text was updated successfully, but these errors were encountered: