fix: use Gson to stringify intent data in BroadcastEvent

This commit is contained in:
Juhani Halkomäki 2021-08-06 14:23:31 +03:00
parent 834ee22bc3
commit b4a3a6ef89
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import android.content.Intent;
import android.os.Bundle;
import com.facebook.react.bridge.ReadableMap;
import com.google.gson.Gson;
import org.jitsi.meet.sdk.log.JitsiMeetLogger;
@ -44,7 +45,7 @@ public class BroadcastEvent {
for (String key : this.data.keySet()) {
try {
intent.putExtra(key, this.data.get(key).toString());
intent.putExtra(key, new Gson().toJson(this.data.get(key)));
} catch (Exception e) {
JitsiMeetLogger.w(TAG + " invalid extra data in event", e);
}