From ee4a3feabd047f27540c5967b88d407855f3de8a Mon Sep 17 00:00:00 2001 From: Santos Cordon Date: Tue, 6 Aug 2013 19:06:19 -0700 Subject: Audio Routing support in UI Changes: - AudioModeProvider - receives audio mode changes from CallHandlerService - CallButtonPresenter listens to AudioModeProvider so that it can use those changes in the UI. - CallButtonFragment uses the audio mode from Presenter() to display: - The correct layers for the supported modes - The popup menu when bluetooth is enabled Change-Id: I8ec4024f7bbb5e3b1cfdaae20a4dd2f85ae802cf --- InCallUI/src/com/android/incallui/Presenter.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'InCallUI/src/com/android/incallui/Presenter.java') diff --git a/InCallUI/src/com/android/incallui/Presenter.java b/InCallUI/src/com/android/incallui/Presenter.java index d4024d53f..b4962aea6 100644 --- a/InCallUI/src/com/android/incallui/Presenter.java +++ b/InCallUI/src/com/android/incallui/Presenter.java @@ -32,6 +32,13 @@ public abstract class Presenter { mUi = ui; } + /** + * Called when the UI view is destroyed in Fragment.onDestroyView(). + */ + public void onUiUnready(U ui) { + mUi = null; + } + public U getUi() { return mUi; } -- cgit v1.2.3