diff options
author | Omkar Kolangade <omkark@codeaurora.org> | 2015-11-21 18:27:31 -0800 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2016-05-16 13:31:53 -0700 |
commit | 4befe72443ea8852bbd06ae97a919b46f530e177 (patch) | |
tree | 17ffe2d8dbb7f09ca9bb67f4ce3235ffbc4ac84f /InCallUI/src/com/android | |
parent | ff81bf19ea85ae61cc2904a5cb79d8c6c61f31f5 (diff) |
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
Diffstat (limited to 'InCallUI/src/com/android')
-rw-r--r-- | InCallUI/src/com/android/incallui/VideoCallFragment.java | 5 | ||||
-rw-r--r-- | InCallUI/src/com/android/incallui/VideoCallPresenter.java | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/InCallUI/src/com/android/incallui/VideoCallFragment.java b/InCallUI/src/com/android/incallui/VideoCallFragment.java index 2e65f81b4..6a46a423d 100644 --- a/InCallUI/src/com/android/incallui/VideoCallFragment.java +++ b/InCallUI/src/com/android/incallui/VideoCallFragment.java @@ -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 diff --git a/InCallUI/src/com/android/incallui/VideoCallPresenter.java b/InCallUI/src/com/android/incallui/VideoCallPresenter.java index 7617608d1..3494afa6d 100644 --- a/InCallUI/src/com/android/incallui/VideoCallPresenter.java +++ b/InCallUI/src/com/android/incallui/VideoCallPresenter.java @@ -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()); } /** |