umairshaik / openintents

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

Notepad long title may be squeezed into tiny space, changes on enter-and-leave note #518

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install OI Notepad
2. Add a very short note e.g. "ABC".
3. Add a very long note
4. Return to the notes list.  Long note looks right
5. Click the long note
6. Return to the notes list.  Long note is squeezed into length of "ABC".
7. Repeatedly clicking the long note and returning to the notes list will 
alternate between the long note looking right and being squeezed.

What is the expected output? What do you see instead?

Long note should always be long, but sometimes is squeezed into tiny space.

What version of the product are you using? On what operating system?

OI Notepad 1.3; seen on Android 2.2 and 2.3.? on a Dell Streak and a Nexus One.

Please provide any additional information below.

I think the problem is in NotesListItemView.hasFocus().  If I replace the 
overridden hasFocus with a new method to marquee-ify the title, and call that 
method from NoteListCursorAdapter.bindView(), it seems to work fine.

Original issue reported on code.google.com by schneck on 3 Apr 2012 at 3:54

GoogleCodeExporter commented 8 years ago
I think I solved the issue, but I would like some more testing of the patch 
before I commit. Can anyone help?

Original comment by manuelrciosici on 24 Apr 2012 at 8:31

Attachments: