asolfre / hackerskeyboard

Automatically exported from code.google.com/p/hackerskeyboard
0 stars 0 forks source link

Error after tilt to landscape mode #280

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the Keyboard in portrait
2. Tilt your device in landscape mode

What is the expected behaviour? What do you see instead?
I Expect the working keyboard, but it is "compressed" (picture)

What version of Hacker's Keyboard are you using?
I tried the last final (v1.33) as well as the last rc (v1.34rc5)

On what phone or tablet?
phone

If applicable, does this affect the 4-row or 5-row layout, or both? Which
language(s)?
Both, I tried English and German.

The problem started after I switched to the Sony Xperia S (720×1280px), ain't 
got any Problems with my Motorola Droid 3 (960×540px) or the HTC Nexus One 
(800×480px)

Original issue reported on code.google.com by the1o...@googlemail.com on 21 Aug 2012 at 3:32

Attachments:

GoogleCodeExporter commented 9 years ago
Interestingly, I have the same issue on my Xperia S and I'm using v1.33, 
compact qwerty in both modes.

Also tried with various rendering methods - direct draw, hardware, software.

Original comment by nilesh...@gmail.com on 22 Sep 2012 at 1:57

GoogleCodeExporter commented 9 years ago
Odd, I saw this at one point in the emulator but since I wasn't able to 
replicate it on my phone or tablet I thought it was an emulator bug. Looks like 
it's a genuine issue.

I'm using the Galaxy Nexus which has the same 720x1280 resolution and that 
works ok, it may be related to the reported display density. It looks like the 
issue is that it's miscalculating the scale - I'm suspecting it's still using 
the pre-rotation 720 pixel width as the new width.

I'll see if I can reproduce it. Does the problem go away if you keep the phone 
in landscape mode and close / reopen the keyboard, or does it stay compressed?

Another thing to try would be turning off animations in system settings, 
assuming your phone has that - I thought it was in the system display settings 
but couldn't find it just now.

Original comment by Klaus.We...@gmail.com on 24 Sep 2012 at 10:58

GoogleCodeExporter commented 9 years ago
I tried that too. Turning off animation, force gpu rendering and not force gpu 
rendering. No use, it still happens.

Also, it happens only after tilt.. when the keyboard is first started in 
portrait and then rotated. To fix that, the app has to be closed and restarted 
directly in landscape mode, or at least, the phone must be in landscape mode 
before invoking the keyboard.

Original comment by nilesh...@gmail.com on 25 Sep 2012 at 1:10

GoogleCodeExporter commented 9 years ago
if you just close/reopen the keyboard, the problem still exists. you have to 
switch back to portrait, close they keyboard, switch to landscape and reopen 
the keybaord. then the keyboard look normal.

Original comment by the1o...@googlemail.com on 25 Sep 2012 at 6:53

GoogleCodeExporter commented 9 years ago
Same problem for me on Sony Xperia Acro S, ICS 4.0.4. On my tablet Ainol Novo 7 
Elf 2 (ICS 4.0.4) it was working without any problem, but on the Sony, I am 
facing with the same problem.

Tried on stock ROM and on some custom ROMs (but stock kernel) as well, but 
nothing changed. Yes, comment 4 is an acceptable solution, but a bugfix would 
be appreciated. 

It seems that the problem appears only on Sony devices...

Original comment by csd.dr...@gmail.com on 18 Oct 2012 at 8:23

Attachments:

GoogleCodeExporter commented 9 years ago
Odd, I just recompiled it with some debugging added and now I can no longer 
reproduce the issue. It's possible that there was a problem with a library 
that's now fixed in the current SDK. I'll test it a bit more, and build a new 
preview release if it appears to be gone.

Original comment by Klaus.We...@gmail.com on 19 Oct 2012 at 2:53

GoogleCodeExporter commented 9 years ago
The new build 1.34rc6 includes extra debugging, and I can no longer reproduce 
the issue with that one. Can you give that a go and let me know how it works 
for you?

https://code.google.com/p/hackerskeyboard/downloads/list

If it's still showing the issue, could you try to get debug logs from the 
device and send them to me? See 
https://code.google.com/p/hackerskeyboard/wiki/HowToAccessSystemLogData for 
notes how to do that.

Original comment by Klaus.We...@gmail.com on 19 Oct 2012 at 3:15

GoogleCodeExporter commented 9 years ago
The issue is still there for me, on Xperia S. I didn't try typing though; just 
launched the keyboard and titled to landscape.

The log is attached.

Original comment by nilesh...@gmail.com on 19 Oct 2012 at 5:44

Attachments:

GoogleCodeExporter commented 9 years ago
Unfortunately the new build still did not solve the problem. Thank you for the 
quick response.

Please find my log filtered for keyboard attached.

Original comment by csd.dr...@gmail.com on 19 Oct 2012 at 5:48

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the logs, the extra info helps. I can see that it's apparently 
getting confused in onMeasure and reusing the old width from portrait mode, but 
not sure yet why or what the (rather odd) calculation there is trying to 
accomplish. Anyway, this looks fixable.

Original comment by Klaus.We...@gmail.com on 19 Oct 2012 at 6:11

GoogleCodeExporter commented 9 years ago
I can confirm this issue on Sony Xperia Sola. No other keyboard has this bug, 
so it can be fixed somehow. This keyboard is best for me, so I will use it 
anyway.

Original comment by dm1.s...@gmail.com on 4 Nov 2012 at 11:15

GoogleCodeExporter commented 9 years ago
This should be fixed by revision c075622f2e6c (finally), sorry about the delay.

Please try v1.34rc9 (or later) and let me know if this fixes the issue for you:
https://code.google.com/p/hackerskeyboard/downloads/list

Original comment by Klaus.We...@gmail.com on 23 Jan 2013 at 6:13

GoogleCodeExporter commented 9 years ago
I'm impressed! it seems to be working! :)

Original comment by the1o...@googlemail.com on 23 Jan 2013 at 7:12

GoogleCodeExporter commented 9 years ago
I confirm, it works for me. Thank you for the good work!

Original comment by dorian.b...@gmail.com on 23 Jan 2013 at 9:24

GoogleCodeExporter commented 9 years ago
[bulk bug update]

The changes from the 1.34rcX prerelease series are included in version 1.37 as 
published on the Play Store, and this bug should be fixed. If it's still not 
working for you, please reopen or file a new bug. Thanks to everyone who helped 
with finding bugs and testing!

Original comment by Klaus.We...@gmail.com on 26 Dec 2013 at 7:12