Update showCallScreen to use Telecomm (2/6)
Implement showCallScreen in TelecommServiceImpl and route through new
InCallService#bringToForeground.
Bug: 15008165
Change-Id: Ib674e2e48efaa1cc97d1513dc2c2b27fdb343657
diff --git a/src/com/android/telecomm/InCallController.java b/src/com/android/telecomm/InCallController.java
index 395e92e..4bba241 100644
--- a/src/com/android/telecomm/InCallController.java
+++ b/src/com/android/telecomm/InCallController.java
@@ -90,7 +90,7 @@
mCallIdMapper.addCall(call);
try {
mInCallService.addCall(toInCallCall(call));
- } catch (RemoteException e) {
+ } catch (RemoteException ignored) {
}
}
}
@@ -137,11 +137,22 @@
newAudioState);
try {
mInCallService.onAudioStateChanged(newAudioState);
- } catch (RemoteException e) {
+ } catch (RemoteException ignored) {
}
}
}
+ void bringToForeground(boolean showDialpad) {
+ if (mInCallService != null) {
+ try {
+ mInCallService.bringToForeground(showDialpad);
+ } catch (RemoteException ignored) {
+ }
+ } else {
+ Log.w(this, "Asking to bring unbound in-call UI to foreground.");
+ }
+ }
+
/**
* Unbinds an existing bound connection to the in-call app.
*/
@@ -221,7 +232,7 @@
if (mInCallService != null) {
try {
mInCallService.updateCall(toInCallCall(call));
- } catch (RemoteException e) {
+ } catch (RemoteException ignored) {
}
}
}