From 4d93f1da2f01ef13de175675d70f5329a7a1ff8c Mon Sep 17 00:00:00 2001 From: Radu Cugut Date: Tue, 21 Jan 2020 23:17:21 -0500 Subject: [PATCH] fix. android event remoteAudioStateChange --- android/src/main/java/com/syan/agora/AgoraModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/syan/agora/AgoraModule.java b/android/src/main/java/com/syan/agora/AgoraModule.java index 9062ec296..de69b2faa 100644 --- a/android/src/main/java/com/syan/agora/AgoraModule.java +++ b/android/src/main/java/com/syan/agora/AgoraModule.java @@ -664,7 +664,7 @@ public void run() { WritableMap map = Arguments.createMap(); map.putInt("uid", uid); map.putInt("state", state); - map.putInt("uid", reason); + map.putInt("reason", reason); map.putInt("elapsed", elapsed); sendEvent(getReactApplicationContext(), AGRemoteAudioStateChanged, map); }