Browse Source

Marked variable muted as final to fix compilation issue

Mateo 6 years ago
parent
commit
55326fdc15
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      android/src/main/java/com/syan/agora/AgoraModule.java

+ 2
- 2
android/src/main/java/com/syan/agora/AgoraModule.java View File

@@ -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() {