From d0fed9b29dc8ad999a8774e4bb9eb00d134e615b Mon Sep 17 00:00:00 2001 From: Brad Pitcher Date: Mon, 7 May 2018 09:39:06 -0700 Subject: [PATCH] avoid lossy conversion from float to int in radius calculation --- src/android/OpenTokAndroidPlugin.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/android/OpenTokAndroidPlugin.java b/src/android/OpenTokAndroidPlugin.java index 9498ea77..fc0b56cb 100644 --- a/src/android/OpenTokAndroidPlugin.java +++ b/src/android/OpenTokAndroidPlugin.java @@ -86,10 +86,10 @@ public class OpenTokAndroidPlugin extends CordovaPlugin public CallbackContext permissionsCallback; public class CameraView extends ViewGroup { - int x = 0; - int y = 0; - int width = 0; - int height = 0; + float x = 0; + float y = 0; + float width = 0; + float height = 0; float[] radii = new float[8]; TextureView view; @@ -1163,4 +1163,4 @@ public void onStreamVideoTypeChanged(Session arg0, Stream arg1, // TODO Auto-generated method stub } -} \ No newline at end of file +}