mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-23 09:22:19 -05:00
ConversationActivity: Update status in onResume()
This commit is contained in:
parent
710c7749f1
commit
e0793a3bfa
@ -96,8 +96,6 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
setContentView(R.layout.conversations);
|
||||
|
||||
((TextView) findViewById(R.id.title)).setText(server.getTitle());
|
||||
((ImageView) findViewById(R.id.status)).setImageResource(server.getStatusIcon());
|
||||
|
||||
((EditText) findViewById(R.id.input)).setOnKeyListener(this);
|
||||
|
||||
deckAdapter = new DeckAdapter();
|
||||
@ -122,6 +120,8 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
{
|
||||
super.onResume();
|
||||
|
||||
((ImageView) findViewById(R.id.status)).setImageResource(server.getStatusIcon());
|
||||
|
||||
Intent intent = new Intent(this, IRCService.class);
|
||||
bindService(intent, this, 0);
|
||||
|
||||
@ -135,6 +135,8 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
|
||||
if (!server.isConnected()) {
|
||||
((EditText) findViewById(R.id.input)).setEnabled(false);
|
||||
} else {
|
||||
((EditText) findViewById(R.id.input)).setEnabled(true);
|
||||
}
|
||||
|
||||
// Fill view with messages that have been buffered while paused
|
||||
|
Loading…
Reference in New Issue
Block a user