Show 'Add to another group' when launched from a group context.

This commit is contained in:
Alan Evans
2020-06-10 12:55:57 -03:00
parent d60d67ee7e
commit 47919382e9
3 changed files with 3 additions and 1 deletions

View File

@@ -149,6 +149,7 @@ public final class RecipientBottomSheetDialogFragment extends BottomSheetDialogF
});
}
addToGroupButton.setText(groupId == null ? R.string.RecipientBottomSheet_add_to_a_group : R.string.RecipientBottomSheet_add_to_another_group);
addToGroupButton.setVisibility(recipient.isRegistered() && !recipient.isGroup() ? View.VISIBLE : View.GONE);
});