diff options
author | Santos Cordon <santoscordon@google.com> | 2013-08-06 19:06:19 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2013-08-07 18:08:12 -0700 |
commit | ee4a3feabd047f27540c5967b88d407855f3de8a (patch) | |
tree | 5c60d1fc13b4d69006ca7ff2c456f999e00f8f78 /InCallUI/src/com/android/incallui/CallCardFragment.java | |
parent | 6d231f52e4f00399330d772f2a337283803f3a9d (diff) |
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
Diffstat (limited to 'InCallUI/src/com/android/incallui/CallCardFragment.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardFragment.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index b584d5e86..d4782c5fe 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -55,6 +55,7 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter> return inflater.inflate(R.layout.call_card, container, false); } + @Override public void onViewCreated(View view, Bundle savedInstanceState) { mPhoneNumber = (TextView) view.findViewById(R.id.phoneNumber); @@ -69,6 +70,11 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter> } @Override + public void onDestroyView() { + getPresenter().onUiUnready(this); + } + + @Override public void setVisible(boolean on) { if (on) { getView().setVisibility(View.VISIBLE); |