1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 02:42:16 -05:00

Scroll to new conversations on create

This commit is contained in:
Sebastian Kaspari 2010-03-10 22:10:40 +01:00
parent 1c44a4e7bd
commit 9d7e360e7c

View File

@ -249,6 +249,11 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
public void onNewConversation(String target)
{
deckAdapter.addItem(server.getConversation(target));
if (!deckAdapter.isSwitched()) {
// Scroll to new conversation
deck.setSelection(deckAdapter.getCount() - 1);
}
}
/**