avoid using the Thread menu items before messages load in
This commit is contained in:
parent
2a0a96718a
commit
e0052d5516
1 changed files with 4 additions and 0 deletions
|
|
@ -89,6 +89,10 @@ class ThreadActivity : SimpleActivity() {
|
|||
}
|
||||
|
||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||
if (participants.isEmpty()) {
|
||||
return true
|
||||
}
|
||||
|
||||
when (item.itemId) {
|
||||
R.id.block_number -> blockNumber()
|
||||
R.id.delete -> askConfirmDelete()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue