Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4befe724 authored by Omkar Kolangade's avatar Omkar Kolangade Committed by Tyler Gunn
Browse files

IMS-VT: Trigger internal onStateChanged notification

To minimize delays and avoid race conditions, trigger
internal the onStateChanged event upon receiving onUiReady
notification.

Bug: 27135373
Change-Id: Ib9a26c6dbda8f3897072e6a276a262e191557073
parent ff81bf19
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -435,12 +435,11 @@ public class VideoCallFragment extends BaseFragment<VideoCallPresenter,
     */
    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

        mIsLandscape = getResources().getBoolean(R.bool.is_layout_landscape);

        Log.d(this, "onActivityCreated: IsLandscape=" + mIsLandscape);
        getPresenter().init(getActivity());

        super.onActivityCreated(savedInstanceState);
    }

    @Override
+4 −0
Original line number Diff line number Diff line
@@ -244,6 +244,10 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
        InCallVideoCallCallbackNotifier.getInstance().addVideoEventListener(this);
        mCurrentVideoState = VideoProfile.STATE_AUDIO_ONLY;
        mCurrentCallState = Call.State.INVALID;

        final InCallPresenter.InCallState inCallState =
             InCallPresenter.getInstance().getInCallState();
        onStateChange(inCallState, inCallState, CallList.getInstance());
    }

    /**