summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2014-05-29 21:11:38 -0700
committerSantos Cordon <santoscordon@google.com>2014-05-29 22:35:42 -0700
commitf7bb05885606f37b8e163802fe297869ed125901 (patch)
tree6bc7899beb7767ef14e5bb85e271048456342504 /InCallUI
parenta33c5b4c09e593bdc7bd45ad517802259c58bf0d (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.java16
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());