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:
parent
1c44a4e7bd
commit
9d7e360e7c
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user