diff --git a/ring-android/app/src/main/java/cx/ring/fragments/CallFragment.java b/ring-android/app/src/main/java/cx/ring/fragments/CallFragment.java index 7f4ee62c784b21c27e1b2f020fe8af307eb6a85b..d9791aa4235987c4592bd9005353eb7bde1be37e 100644 --- a/ring-android/app/src/main/java/cx/ring/fragments/CallFragment.java +++ b/ring-android/app/src/main/java/cx/ring/fragments/CallFragment.java @@ -670,12 +670,16 @@ public class CallFragment extends Fragment implements CallInterface, ContactDeta @Override public void onConfigurationChanged(Configuration newConfig) { + updatePreview(); + } + + private void updatePreview() { if (videoPreview.getVisibility() == View.VISIBLE) { try { mCallbacks.getRemoteService().setPreviewSettings(); mCallbacks.getRemoteService().videoPreviewSurfaceAdded(); } catch (RemoteException e) { - e.printStackTrace(); + Log.e(TAG, "service not found ", e); } } } @@ -843,6 +847,8 @@ public class CallFragment extends Fragment implements CallInterface, ContactDeta contactBubbleLayout.setVisibility(haveVideo ? View.GONE : View.VISIBLE); updateSecurityDisplay(); + + updatePreview(); } private void updateSecurityDisplay() { @@ -949,10 +955,9 @@ public class CallFragment extends Fragment implements CallInterface, ContactDeta if (!vcard.getPhotos().isEmpty()) { Photo tmp = vcard.getPhotos().get(0); - if(tmp.getData() != null) { + if (tmp.getData() != null) { contactBubbleView.setImageBitmap(CropImageUtils.cropImageToCircle(tmp.getData())); - } - else{ + } else { setDefaultPhoto(); } } else {