Disable shared element transitions from bubble.
This commit is contained in:
parent
a88410faaf
commit
2bff2d3a30
2 changed files with 8 additions and 1 deletions
|
@ -1490,6 +1490,7 @@ public class ConversationFragment extends LoggingFragment implements Multiselect
|
||||||
void onRegisterVoiceNoteCallbacks(@NonNull Observer<VoiceNotePlaybackState> onPlaybackStartObserver);
|
void onRegisterVoiceNoteCallbacks(@NonNull Observer<VoiceNotePlaybackState> onPlaybackStartObserver);
|
||||||
void onUnregisterVoiceNoteCallbacks(@NonNull Observer<VoiceNotePlaybackState> onPlaybackStartObserver);
|
void onUnregisterVoiceNoteCallbacks(@NonNull Observer<VoiceNotePlaybackState> onPlaybackStartObserver);
|
||||||
void onInviteToSignal();
|
void onInviteToSignal();
|
||||||
|
boolean isInBubble();
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ConversationScrollListener extends OnScrollListener {
|
private class ConversationScrollListener extends OnScrollListener {
|
||||||
|
@ -2109,6 +2110,11 @@ public class ConversationFragment extends LoggingFragment implements Multiselect
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void goToMediaPreview(ConversationItem parent, View sharedElement, MediaIntentFactory.MediaPreviewArgs args) {
|
public void goToMediaPreview(ConversationItem parent, View sharedElement, MediaIntentFactory.MediaPreviewArgs args) {
|
||||||
|
if (listener.isInBubble()) {
|
||||||
|
requireActivity().startActivity(MediaIntentFactory.create(requireActivity(), args));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (args.isVideoGif()) {
|
if (args.isVideoGif()) {
|
||||||
int adapterPosition = list.getChildAdapterPosition(parent);
|
int adapterPosition = list.getChildAdapterPosition(parent);
|
||||||
GiphyMp4ProjectionPlayerHolder holder = giphyMp4ProjectionRecycler.getCurrentHolder(adapterPosition);
|
GiphyMp4ProjectionPlayerHolder holder = giphyMp4ProjectionRecycler.getCurrentHolder(adapterPosition);
|
||||||
|
|
|
@ -2267,7 +2267,8 @@ public class ConversationParentFragment extends Fragment
|
||||||
callback.onInitializeToolbar(toolbar);
|
callback.onInitializeToolbar(toolbar);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isInBubble() {
|
@Override
|
||||||
|
public boolean isInBubble() {
|
||||||
return callback.isInBubble();
|
return callback.isInBubble();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue