fix wired 'Hide offline' behavior
This commit is contained in:
parent
1fa72c42a0
commit
2b2ecbb44e
|
@ -847,12 +847,22 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
|
|||
filter(mSearchEditText.getText().toString());
|
||||
}
|
||||
invalidateOptionsMenu();
|
||||
return true;
|
||||
case R.id.action_note_to_self:
|
||||
if (xmppConnectionService == null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
final List<Account> accounts = xmppConnectionService.getAccounts();
|
||||
if (accounts.size() == 1) {
|
||||
if (accounts.get(0).getSelfContact() == null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
final Contact self = new Contact(accounts.get(0).getSelfContact());
|
||||
openConversationForContact(self);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue