1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-08-13 16:53:50 -04:00
Yaaic/application/src/org/yaaic/adapter
Steven Luo 159cb8195d Remember switched conversations across screen orientation changes
As of now, the activity does not remember whether a conversation is
switched across configuration changes (such as screen rotations).  Fix
this by adding onSaveInstanceState() and onRestoreInstanceState()
callbacks in the activity to pass this information to the new instance.

To make the implementation of this simpler, all code to configure the
MessageListView, which was duplicated in several places in the codebase,
has been moved to the MessageListView's constructor.

While we're at it, make the padding setting independent of screen
density instead of specifying in fixed pixels (equivalent to specifying
the value in dp instead of px), and increase the padding for switched
views.  This ensures that message text isn't obscured by the gradient at
the edges of the ConversationGallery, which started happening when we
began caching MessageListViews in the DeckAdapter.
2011-06-08 23:11:28 +02:00
..
DeckAdapter.java Remember switched conversations across screen orientation changes 2011-06-08 23:11:28 +02:00
MessageListAdapter.java Added 2011 to licence header 2011-02-05 13:00:12 +01:00
ServerListAdapter.java Some more simple refactorings 2011-03-14 22:15:13 +01:00
UserActionListAdapter.java Some more simple refactorings 2011-03-14 22:15:13 +01:00