mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-22 17:02:21 -05:00
159cb8195d
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. |
||
---|---|---|
.. | ||
.settings | ||
res | ||
src/org | ||
.classpath | ||
.project | ||
AndroidManifest.xml | ||
build.properties | ||
build.xml | ||
default.properties |