Add ability to view your own profile photo fullscreen.
From the profile management screen. Fixes #11033
This commit is contained in:
parent
5b668d7931
commit
003b3e02e4
1 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,7 @@ import com.airbnb.lottie.SimpleColorFilter;
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
|
|
||||||
import org.signal.core.util.logging.Log;
|
import org.signal.core.util.logging.Log;
|
||||||
|
import org.thoughtcrime.securesms.AvatarPreviewActivity;
|
||||||
import org.thoughtcrime.securesms.LoggingFragment;
|
import org.thoughtcrime.securesms.LoggingFragment;
|
||||||
import org.thoughtcrime.securesms.R;
|
import org.thoughtcrime.securesms.R;
|
||||||
import org.thoughtcrime.securesms.avatar.Avatars;
|
import org.thoughtcrime.securesms.avatar.Avatars;
|
||||||
|
@ -135,6 +136,11 @@ public class ManageProfileFragment extends LoggingFragment {
|
||||||
} else {
|
} else {
|
||||||
badgesContainer.setVisibility(View.GONE);
|
badgesContainer.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
avatarView.setOnClickListener(v -> {
|
||||||
|
startActivity(AvatarPreviewActivity.intentFromRecipientId(requireContext(), Recipient.self().getId()),
|
||||||
|
AvatarPreviewActivity.createTransitionBundle(requireActivity(), avatarView));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initializeViewModel() {
|
private void initializeViewModel() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue