diff options
author | Santos Cordon <santoscordon@google.com> | 2014-05-29 21:11:38 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2014-05-29 22:35:42 -0700 |
commit | f7bb05885606f37b8e163802fe297869ed125901 (patch) | |
tree | 6bc7899beb7767ef14e5bb85e271048456342504 /InCallUI | |
parent | a33c5b4c09e593bdc7bd45ad517802259c58bf0d (diff) |
Update showCallScreen to use Telecomm (4/6)
Implement new bringToForeground method.
Bug: 15008165
Change-Id: Ib674e2e48efaa1cc97d1513dc2c2b27fdb343657
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallServiceImpl.java | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallServiceImpl.java b/InCallUI/src/com/android/incallui/InCallServiceImpl.java index 6e5ea28bb..bcafbee4f 100644 --- a/InCallUI/src/com/android/incallui/InCallServiceImpl.java +++ b/InCallUI/src/com/android/incallui/InCallServiceImpl.java @@ -91,21 +91,31 @@ public class InCallServiceImpl extends InCallService { } /** {@inheritDoc} */ - @Override protected void setPostDial(String callId, String remaining) { + @Override + protected void setPostDial(String callId, String remaining) { // TODO(ihab): Add post-dial state to user interface } /** {@inheritDoc} */ - @Override protected void setPostDialWait(String callId, String remaining) { + @Override + protected void setPostDialWait(String callId, String remaining) { // TODO(ihab): Add post-dial state to user interface } /** {@inheritDoc} */ - @Override protected void onAudioStateChanged(CallAudioState audioState) { + @Override + protected void onAudioStateChanged(CallAudioState audioState) { AudioModeProvider.getInstance().onAudioModeChange(audioState.route, audioState.isMuted); AudioModeProvider.getInstance().onSupportedAudioModeChange(audioState.supportedRouteMask); } + /** {@inheritDoc} */ + @Override + protected void bringToForeground(boolean showDialpad) { + Log.i(this, "Bringing UI to foreground."); + InCallPresenter.getInstance().bringToForeground(showDialpad); + } + private void updateCall(Call call, InCallCall telecommCall) { call.setHandle(telecommCall.getHandle()); call.setDisconnectCause(telecommCall.getDisconnectCause()); |