diff --git a/res/layout/settings.xml b/res/layout/settings.xml index 2518bf3e2..107110dfc 100644 --- a/res/layout/settings.xml +++ b/res/layout/settings.xml @@ -10,74 +10,94 @@ android:paddingBottom="75dp" /> - - - - - - - - - - + android:id="@+id/menu" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:orientation="horizontal"> - + - + - - - + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/org/linphone/VideoCallFragment.java b/src/org/linphone/VideoCallFragment.java index d39f66a8d..6c7772557 100644 --- a/src/org/linphone/VideoCallFragment.java +++ b/src/org/linphone/VideoCallFragment.java @@ -171,7 +171,7 @@ public class VideoCallFragment extends Fragment implements OnGestureListener, On public boolean onScale(CompatibilityScaleGestureDetector detector) { mZoomFactor *= detector.getScaleFactor(); // Don't let the object get too small or too large. - mZoomFactor = Math.max(0.1f, Math.min(mZoomFactor, mVideoView.getHeight() / LinphoneManager.getLc().getPreferredVideoSize().height)); + mZoomFactor = Math.max(0.1f, Math.min(mZoomFactor, ((float) mVideoView.getHeight()) / LinphoneManager.getLc().getPreferredVideoSize().height)); LinphoneManager.getLc().getCurrentCall().zoomVideo(mZoomFactor, mZoomCenterX, mZoomCenterY); return true; @@ -204,9 +204,9 @@ public class VideoCallFragment extends Fragment implements OnGestureListener, On @Override public boolean onDoubleTap(MotionEvent e) { if (LinphoneUtils.isCallEstablished(LinphoneManager.getLc().getCurrentCall())) { - if (mZoomFactor == 1) { + if (mZoomFactor == 1.f) { // Zoom to make the video fill the screen in height - mZoomFactor = mVideoView.getHeight() / LinphoneManager.getLc().getPreferredVideoSize().height; + mZoomFactor = ((float) mVideoView.getHeight()) / LinphoneManager.getLc().getPreferredVideoSize().height; } else { resetZoom(); @@ -220,7 +220,7 @@ public class VideoCallFragment extends Fragment implements OnGestureListener, On } private void resetZoom() { - mZoomFactor = 1; + mZoomFactor = 1.f; mZoomCenterX = mZoomCenterY = 0.5f; }