fix(android): revert previous fix not compatible with old java version (#3828)

This commit is contained in:
Olivier Bouillet 2024-05-23 17:35:13 +02:00 committed by GitHub
parent 563b27a166
commit 69bde447b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1686,7 +1686,8 @@ public class ReactExoplayerView extends FrameLayout implements
} }
TimedMetadata timedMetadata = new TimedMetadata(frame.id, value); TimedMetadata timedMetadata = new TimedMetadata(frame.id, value);
metadataArray.add(timedMetadata); metadataArray.add(timedMetadata);
} else if (entry instanceof EventMessage eventMessage) { } else if (entry instanceof EventMessage) {
EventMessage eventMessage = (EventMessage) entry;
TimedMetadata timedMetadata = new TimedMetadata(eventMessage.schemeIdUri, eventMessage.value); TimedMetadata timedMetadata = new TimedMetadata(eventMessage.schemeIdUri, eventMessage.value);
metadataArray.add(timedMetadata); metadataArray.add(timedMetadata);
} else { } else {