Sfoglia il codice sorgente

Merge pull request #123 from onpageideas/master

fix. android event remoteAudioStateChange
matrixbirds 4 anni fa
parent
commit
0484530585
No account linked to committer's email address
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      android/src/main/java/com/syan/agora/AgoraModule.java

+ 1
- 1
android/src/main/java/com/syan/agora/AgoraModule.java Vedi File

@@ -664,7 +664,7 @@ public class AgoraModule extends ReactContextBaseJavaModule {
664 664
                     WritableMap map = Arguments.createMap();
665 665
                     map.putInt("uid", uid);
666 666
                     map.putInt("state", state);
667
-                    map.putInt("uid", reason);
667
+                    map.putInt("reason", reason);
668 668
                     map.putInt("elapsed", elapsed);
669 669
                     sendEvent(getReactApplicationContext(), AGRemoteAudioStateChanged, map);
670 670
                 }