diff options
author | Mick Lin <Mick.Lin@mediatek.com> | 2015-01-10 01:57:30 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-01-10 01:57:30 +0000 |
commit | fb49d3b9b625aa11878e7f75ab51781ec54cc915 (patch) | |
tree | 65ebbc2fc40a517c9575ffd6d9ee87988bca19cf | |
parent | 8a8558b3aec185913471917a1fdab80fbb64b3c6 (diff) | |
parent | 820ebb5a23877f46f60366da52e9a4c7c39e633c (diff) |
am 068b226e: am 5295eadc: am 3a8eaf2d: [DS] Fix a bug about Sip incoming call screen do not show.
* commit '068b226e6ab1b92427d274d1f85e42663c37b4a3':
[DS] Fix a bug about Sip incoming call screen do not show.
-rw-r--r-- | InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java b/InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java index bef4ef30a..86fc18ff3 100644 --- a/InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java +++ b/InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java @@ -21,6 +21,7 @@ import android.content.Context; import com.android.incallui.InCallPresenter.InCallDetailsListener; import com.android.incallui.InCallPresenter.InCallState; import com.android.incallui.InCallPresenter.InCallStateListener; +import com.android.incallui.InCallPresenter.IncomingCallListener; import com.google.common.base.Preconditions; @@ -32,7 +33,7 @@ import java.util.List; */ public class ConferenceManagerPresenter extends Presenter<ConferenceManagerPresenter.ConferenceManagerUi> - implements InCallStateListener, InCallDetailsListener { + implements InCallStateListener, InCallDetailsListener, IncomingCallListener { private Context mContext; @@ -42,6 +43,7 @@ public class ConferenceManagerPresenter // register for call state changes last InCallPresenter.getInstance().addListener(this); + InCallPresenter.getInstance().addIncomingCallListener(this); } @Override @@ -49,6 +51,7 @@ public class ConferenceManagerPresenter super.onUiUnready(ui); InCallPresenter.getInstance().removeListener(this); + InCallPresenter.getInstance().removeIncomingCallListener(this); } @Override @@ -90,6 +93,15 @@ public class ConferenceManagerPresenter } } + @Override + public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { + // When incoming call exists, set conference ui invisible. + if (getUi().isFragmentVisible()) { + Log.d(this, "onIncomingCall()... Conference ui is showing, hide it."); + InCallPresenter.getInstance().showConferenceCallManager(false); + } + } + public void init(Context context, CallList callList) { mContext = Preconditions.checkNotNull(context); mContext = context; |