Browse Source

fix. convert

matrixbirds 5 years ago
parent
commit
9ee5209def
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

1368
     @ReactMethod
1368
     @ReactMethod
1369
     public void getCameraMaxZoomFactor(Promise promise) {
1369
     public void getCameraMaxZoomFactor(Promise promise) {
1370
         try {
1370
         try {
1371
-            int res = AgoraManager.getInstance().mRtcEngine.getCameraMaxZoomFactor();
1371
+            double res = AgoraManager.getInstance().mRtcEngine.getCameraMaxZoomFactor();
1372
             WritableMap map = Arguments.createMap();
1372
             WritableMap map = Arguments.createMap();
1373
             map.putBoolean("success", true);
1373
             map.putBoolean("success", true);
1374
-            map.putInt("value", res);
1374
+            map.putDouble("value", res);
1375
             promise.resolve(map);
1375
             promise.resolve(map);
1376
         } catch (Exception e) {
1376
         } catch (Exception e) {
1377
             promise.reject(e);
1377
             promise.reject(e);