mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-17 23:40:20 -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)
|
public void onNewConversation(String target)
|
||||||
{
|
{
|
||||||
deckAdapter.addItem(server.getConversation(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