ConversationActivity: clear conversations if server is in PRE_CONNECTING state
This commit is contained in:
parent
d90c8b3081
commit
75feb90a95
|
@ -122,6 +122,12 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
|||
deck.setOnItemClickListener(this);
|
||||
deck.setBackgroundDrawable(new NonScalingBackgroundDrawable(this, deck, R.drawable.background));
|
||||
|
||||
if (server.getStatus() == Status.PRE_CONNECTING) {
|
||||
server.clearConversations();
|
||||
deckAdapter.clearConversations();
|
||||
}
|
||||
|
||||
|
||||
switcher = (ViewSwitcher) findViewById(R.id.switcher);
|
||||
|
||||
// Optimization : cache field lookups
|
||||
|
|
Loading…
Reference in New Issue