When denting first time for episode, keyboard hides textbox

Bug #612627 reported by Tom Sutch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pony Express
Fix Released
Undecided
Unassigned

Bug Description

When using Pony Express to dent, selecting the text box at the bottom brings up the soft keyboard as you'd expect. However, sometimes the text box is hidden under the keyboard and you can't see what you're typing.

This only seems to happen when there are no dents yet for an episode: after one has been made, the text box moves nicely.

At time of writing, LO150 doesn't have any dents. You don't actually have to submit the dent to see the behaviour - so hopefully if people don't dent on LO150 it will remain a useful test case.

Tom Sutch (plumstead21)
description: updated
Revision history for this message
Tom Sutch (plumstead21) wrote :

The above was on my HTC Desire (2.1). I have now been upgraded to 2.2 (woohoo!) but get the same issue.

I have just tested using the Android emulator (2.1) on trunk, and found that I could get the on-screen keyboard to come up. However, the Dent! button is hidden by the keyboard.

Revision history for this message
Tom Sutch (plumstead21) wrote :

Sorry for spamming this bug! Here are a couple of screenshots, taken from the emulator (running 2.1) showing denting on an episode which already has dents (160) and one which hasn't (151). For 151, not only has the bottom button been hidden but the episode title and tabs at the top have disappeared.

I tried playing around with the HierarchyViewer tool but couldn't work out what was going on. I tried playing around with some of the layout attributes in res/layout/identica.xml but couldn't get any meaningful differences. I also tried putting a windowSoftInputMode="resize" for the activity in the manifest file but that didn't change anything.

Is it something to do with the list object - does some magic happen when it gets stuffed with the list of dents that causes it to behave itself?

Revision history for this message
Paul Elms (scifly) wrote :

Hi Tom, thanks for the bug report and all the useful investigations:)
I can't look into this at the moment as I am on holiday, so can't test this out. I will look into it when I get back, if you haven't worked it out by then.. ;)

Revision history for this message
Paul Elms (scifly) wrote :

Tom, I have had a look at this on my HTC legend which is on 2.1 and confirm what you see using the emulator. I can always see the text box though, it is only the Dent button and tabs that disappear. It is probably to do with the ListView object as you guess, it knows if there are any entries to show and if not shows a default entry. The default entry is not in a list and so the other view objects probably behave differently with it than with a list. I'll add it to the TODO list.. :)

Changed in ponyexpress:
status: New → Confirmed
Revision history for this message
Paul Elms (scifly) wrote :

I've just committed a fix to this bug to gitorious, commit http://gitorious.org/ponyexpress/mainline/commit/47c9dc6978bcdde3861f548b72c2538857423539

Tom, you weren't far off with your try at using windowSoftInputMode in the Manifest file, thats what it needed but for the TabActivity not the Identica Activity.
If anyone wants to test the fix, a trunk build with the fix can be downloaded from http://sixgun.org/wiki/ponyexpress/start#you-can-help. For testing, episode 155 has no dents, while all other episodes do.

Changed in ponyexpress:
status: Confirmed → Fix Committed
Revision history for this message
Tom Sutch (plumstead21) wrote :

Cool, thanks Paul. Good to know I wasn't a million miles off! Unfortunately the Ubuntu One server seems to be down at the moment so I can't download the latest build, but I will keep trying.

Revision history for this message
Paul Elms (scifly) wrote :

Marking Fix released in 0.1.1

Changed in ponyexpress:
status: Fix Committed → Fix Released
Revision history for this message
Tom Sutch (plumstead21) wrote :

Excellent - this is working fine on my phone now I've finally managed to install it!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.