From a7086bc66eca9bbae80fb40ec532b3253361ee53 Mon Sep 17 00:00:00 2001 From: Brandon Maxwell Date: Thu, 3 Dec 2015 13:51:10 -0800 Subject: Updating InCallUI to use CallAudioStateCompat Bug: 25776171 Change-Id: I94b42eb188e457a5470e33642cab2517949a8153 --- InCallUI/src/com/android/incallui/InCallServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'InCallUI/src/com/android/incallui/InCallServiceImpl.java') diff --git a/InCallUI/src/com/android/incallui/InCallServiceImpl.java b/InCallUI/src/com/android/incallui/InCallServiceImpl.java index 11202e7a3..3e4f71461 100644 --- a/InCallUI/src/com/android/incallui/InCallServiceImpl.java +++ b/InCallUI/src/com/android/incallui/InCallServiceImpl.java @@ -23,6 +23,7 @@ import android.telecom.Call; import android.telecom.CallAudioState; import android.telecom.InCallService; +import com.android.dialer.compat.CallAudioStateCompat; import com.android.dialer.database.FilteredNumberAsyncQueryHandler; /** @@ -33,9 +34,11 @@ import com.android.dialer.database.FilteredNumberAsyncQueryHandler; */ public class InCallServiceImpl extends InCallService { + // TODO CallAudioState backporting blocked by InCallService backporting @Override public void onCallAudioStateChanged(CallAudioState audioState) { - AudioModeProvider.getInstance().onAudioStateChanged(audioState); + AudioModeProvider.getInstance().onAudioStateChanged(audioState.isMuted(), + audioState.getRoute(), audioState.getSupportedRouteMask()); } @Override -- cgit v1.2.3