mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Fix MP4 Gif crash with ConversationUpdateItem
Due to adapter positions changing due to deletes and other such nonsense, there are cases where update items are all of a sudden in our playing or notplaying arrays. Checking for playable content before trying to update positioning information seems to have fixed the issue.
This commit is contained in:
@@ -512,7 +512,7 @@ public class ConversationFragment extends LoggingFragment {
|
||||
|
||||
private void onViewHolderPositionTranslated(@NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder) {
|
||||
if (viewHolder instanceof GiphyMp4Playable) {
|
||||
giphyMp4ProjectionRecycler.updateDisplay(recyclerView, (GiphyMp4Playable) viewHolder);
|
||||
giphyMp4ProjectionRecycler.updateVideoDisplayPositionAndSize(recyclerView, (GiphyMp4Playable) viewHolder);
|
||||
}
|
||||
|
||||
if (colorizer != null) {
|
||||
|
||||
Reference in New Issue
Block a user