Add invite friends action button and text.

This commit is contained in:
Alex Hart
2021-01-08 17:13:57 -04:00
committed by Alan Evans
parent 9fcf40fdc4
commit 4320a81846
3 changed files with 36 additions and 0 deletions

View File

@@ -233,6 +233,15 @@ public final class ConversationUpdateItem extends LinearLayout
actionButton.setVisibility(GONE);
actionButton.setOnClickListener(null);
}
} else if (conversationMessage.getMessageRecord().isSelfCreatedGroup()) {
actionButton.setText(R.string.ConversationUpdateItem_invite_friends);
actionButton.setVisibility(VISIBLE);
actionButton.setOnClickListener(v -> {
if (batchSelected.isEmpty() && eventListener != null) {
// TODO [alan]
Log.i(TAG, "TODO");
}
});
} else {
actionButton.setVisibility(GONE);
actionButton.setOnClickListener(null);