瀏覽代碼

Merge pull request #20 from hrastnik/bugfix_mark-muted-as-final

Marked variable muted as final to fix compilation issue
少言 6 年之前
父節點
當前提交
17ea81106d
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      android/src/main/java/com/syan/agora/AgoraModule.java

+ 2
- 2
android/src/main/java/com/syan/agora/AgoraModule.java 查看文件

@@ -223,7 +223,7 @@ public class AgoraModule extends ReactContextBaseJavaModule {
223 223
          * 用户mute音频回调
224 224
          */
225 225
         @Override
226
-        public void onUserMuteAudio(final int uid, boolean muted) {
226
+        public void onUserMuteAudio(final int uid, final boolean muted) {
227 227
             runOnUiThread(new Runnable() {
228 228
                 @Override
229 229
                 public void run() {
@@ -240,7 +240,7 @@ public class AgoraModule extends ReactContextBaseJavaModule {
240 240
          * 用户mute视频回调
241 241
          */
242 242
         @Override
243
-        public void onUserMuteVideo(final int uid, boolean muted) {
243
+        public void onUserMuteVideo(final int uid, final boolean muted) {
244 244
             runOnUiThread(new Runnable() {
245 245
                 @Override
246 246
                 public void run() {