Skip to content

Commit

Permalink
ConversationActivity: clear conversations if server is in PRE_CONNECT…
Browse files Browse the repository at this point in the history
…ING state
  • Loading branch information
pocmo committed Apr 15, 2010
1 parent d90c8b3 commit 75feb90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/org/yaaic/activity/ConversationActivity.java
Expand Up @@ -121,6 +121,12 @@ protected void onCreate(Bundle savedInstanceState)
deck.setAdapter(deckAdapter);
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);

Expand Down

0 comments on commit 75feb90

Please sign in to comment.