xyozio commented on a change in pull request #482: fix issue #481 and #367
URL: 
https://github.com/apache/cordova-plugin-camera/pull/482#discussion_r321959044
 
 

 ##########
 File path: src/android/CameraLauncher.java
 ##########
 @@ -168,6 +169,7 @@ public boolean execute(String action, JSONArray args, 
CallbackContext callbackCo
             this.allowEdit = args.getBoolean(7);
             this.correctOrientation = args.getBoolean(8);
             this.saveToPhotoAlbum = args.getBoolean(9);
+            this.useFrontCamera = args.getInt(11) == 1 ? true: false;
 
 Review comment:
   Can just be `this.useFrontCamera = args.getInt(11) == 1;`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to