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

fork-5.53.8
Alan Evans 2020-06-10 12:55:57 -03:00
rodzic d60d67ee7e
commit 47919382e9
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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);
});

Wyświetl plik

@ -126,9 +126,9 @@
android:layout_height="56dp"
android:paddingStart="20dp"
android:paddingEnd="20dp"
android:text="@string/RecipientBottomSheet_add_to_a_group"
android:visibility="gone"
app:drawableStartCompat="?attr/recipient_make_admin_icon"
tools:text="@string/RecipientBottomSheet_add_to_a_group"
tools:visibility="visible" />
<Button

Wyświetl plik

@ -2318,6 +2318,7 @@
<string name="RecipientBottomSheet_unblock">Unblock</string>
<string name="RecipientBottomSheet_add_to_contacts">Add to contacts</string>
<string name="RecipientBottomSheet_add_to_a_group">Add to a group</string>
<string name="RecipientBottomSheet_add_to_another_group">Add to another group</string>
<string name="RecipientBottomSheet_view_safety_number">View safety number</string>
<string name="RecipientBottomSheet_make_group_admin">Make group admin</string>
<string name="RecipientBottomSheet_remove_as_admin">Remove as admin</string>