Skip to content
Snippets Groups Projects
Commit 93e887fc authored by Adrien Béraud's avatar Adrien Béraud
Browse files

call: cleanup

Change-Id: Ife063b2ca7df4b138785d8989ee8d1a5ab9c65bc
parent 34915fbc
No related branches found
No related tags found
No related merge requests found
...@@ -109,14 +109,12 @@ import cx.ring.model.CallContact; ...@@ -109,14 +109,12 @@ import cx.ring.model.CallContact;
import cx.ring.model.Conference; import cx.ring.model.Conference;
import cx.ring.model.SipCall; import cx.ring.model.SipCall;
import cx.ring.mvp.BaseSupportFragment; import cx.ring.mvp.BaseSupportFragment;
import cx.ring.plugins.PluginUtils;
import cx.ring.plugins.RecyclerPicker.RecyclerPicker; import cx.ring.plugins.RecyclerPicker.RecyclerPicker;
import cx.ring.plugins.RecyclerPicker.RecyclerPickerLayoutManager; import cx.ring.plugins.RecyclerPicker.RecyclerPickerLayoutManager;
import cx.ring.service.DRingService; import cx.ring.service.DRingService;
import cx.ring.services.DeviceRuntimeService; import cx.ring.services.DeviceRuntimeService;
import cx.ring.services.HardwareService; import cx.ring.services.HardwareService;
import cx.ring.services.NotificationService; import cx.ring.services.NotificationService;
import cx.ring.settings.pluginssettings.PluginDetails;
import cx.ring.utils.ActionHelper; import cx.ring.utils.ActionHelper;
import cx.ring.utils.ContentUriHandler; import cx.ring.utils.ContentUriHandler;
import cx.ring.utils.ConversationPath; import cx.ring.utils.ConversationPath;
...@@ -326,7 +324,6 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements ...@@ -326,7 +324,6 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements
@Nullable @Nullable
@Override @Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) { public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
((JamiApplication) requireActivity().getApplication()).getInjectionComponent().inject(this); ((JamiApplication) requireActivity().getApplication()).getInjectionComponent().inject(this);
binding = DataBindingUtil.inflate(inflater, R.layout.frag_call, container, false); binding = DataBindingUtil.inflate(inflater, R.layout.frag_call, container, false);
binding.setPresenter(this); binding.setPresenter(this);
...@@ -1025,7 +1022,7 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements ...@@ -1025,7 +1022,7 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements
@Override @Override
public void initMenu(boolean isSpeakerOn, boolean displayFlip, boolean canDial, public void initMenu(boolean isSpeakerOn, boolean displayFlip, boolean canDial,
boolean showPluginBtn, boolean onGoingCall) { boolean showPluginBtn, boolean onGoingCall) {
if (binding.callCameraFlipBtn != null) { if (binding != null) {
binding.callCameraFlipBtn.setVisibility(displayFlip ? View.VISIBLE : View.GONE); binding.callCameraFlipBtn.setVisibility(displayFlip ? View.VISIBLE : View.GONE);
} }
if (dialPadBtn != null) { if (dialPadBtn != null) {
...@@ -1127,7 +1124,7 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements ...@@ -1127,7 +1124,7 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements
private void configureTransform(int viewWidth, int viewHeight) { private void configureTransform(int viewWidth, int viewHeight) {
Activity activity = getActivity(); Activity activity = getActivity();
if (null == binding.previewSurface || null == activity) { if (null == binding || null == activity) {
return; return;
} }
int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); int rotation = activity.getWindowManager().getDefaultDisplay().getRotation();
...@@ -1377,7 +1374,7 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements ...@@ -1377,7 +1374,7 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements
public void toggleVideoPluginsCarousel(boolean toggle) { public void toggleVideoPluginsCarousel(boolean toggle) {
toggleVideoPluginsCarousel = toggle; toggleVideoPluginsCarousel = toggle;
if (choosePluginMode) { if (choosePluginMode) {
if (toggleVideoPluginsCarousel) { if (toggle) {
binding.recyclerPicker.setVisibility(View.VISIBLE); binding.recyclerPicker.setVisibility(View.VISIBLE);
movePreview(true); movePreview(true);
} else { } else {
......
<vector xmlns:android="http://schemas.android.com/apk/res/android" <vector xmlns:android="http://schemas.android.com/apk/res/android"
android:autoMirrored="true" android:autoMirrored="true"
android:height="24.018764dp" android:height="24dp"
android:width="24dp" android:width="24dp"
android:viewportHeight="1280" android:viewportHeight="1280"
android:viewportWidth="1279" android:viewportWidth="1279"
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <ImageView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="112dp"
android:layout_height="112dp"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:padding="24dp">
<ImageView
android:id="@+id/item_image_view" android:id="@+id/item_image_view"
android:layout_width="match_parent" android:layout_width="64dp"
android:layout_height="match_parent" android:layout_height="64dp"
app:layout_constraintBottom_toBottomOf="parent" tools:src="@drawable/ic_plugin"
app:layout_constraintEnd_toEndOf="parent" android:layout_margin="24dp" />
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/ic_plugin"/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment