Add ability to view your own profile photo fullscreen.

From the profile management screen.

Fixes #11033
fork-5.53.8
Greyson Parrelli 2022-03-29 18:05:56 -04:00
rodzic 5b668d7931
commit 003b3e02e4
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -25,6 +25,7 @@ import com.airbnb.lottie.SimpleColorFilter;
import com.bumptech.glide.Glide;
import org.signal.core.util.logging.Log;
import org.thoughtcrime.securesms.AvatarPreviewActivity;
import org.thoughtcrime.securesms.LoggingFragment;
import org.thoughtcrime.securesms.R;
import org.thoughtcrime.securesms.avatar.Avatars;
@ -135,6 +136,11 @@ public class ManageProfileFragment extends LoggingFragment {
} else {
badgesContainer.setVisibility(View.GONE);
}
avatarView.setOnClickListener(v -> {
startActivity(AvatarPreviewActivity.intentFromRecipientId(requireContext(), Recipient.self().getId()),
AvatarPreviewActivity.createTransitionBundle(requireActivity(), avatarView));
});
}
private void initializeViewModel() {