Skip to content

Commit

Permalink
fix. convert
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrixbirds committed Feb 28, 2019
1 parent 2644ef1 commit 3563c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/com/syan/agora/AgoraModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -1368,10 +1368,10 @@ public void setCameraZoomFactor(float factor, Promise promise) {
@ReactMethod
public void getCameraMaxZoomFactor(Promise promise) {
try {
int res = AgoraManager.getInstance().mRtcEngine.getCameraMaxZoomFactor();
double res = AgoraManager.getInstance().mRtcEngine.getCameraMaxZoomFactor();
WritableMap map = Arguments.createMap();
map.putBoolean("success", true);
map.putInt("value", res);
map.putDouble("value", res);
promise.resolve(map);
} catch (Exception e) {
promise.reject(e);
Expand Down

0 comments on commit 3563c36

Please sign in to comment.