diff options
author | Santos Cordon <santoscordon@google.com> | 2013-08-08 16:59:44 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2013-08-09 15:58:01 -0700 |
commit | b8eedb3b9796873eaa22847205239a51092f1a43 (patch) | |
tree | 5067b9a9b61500f5fa35d6e6fea6b7efcef5ff90 /InCallUI/src/com/android/incallui/InCallActivity.java | |
parent | 1b3e3f1056317fca5be4e7535d722da8876b2cbf (diff) |
Singletons are hard, lets go chopping...them out of the code.
After this change, there remains only one singleton (InCallPresenter).
The whole system needs to be reworked in a better manner in terms of
build up and tear down.
Change-Id: I393ec648526bc28a3ae709004aed6d4627670549
Diffstat (limited to 'InCallUI/src/com/android/incallui/InCallActivity.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallActivity.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java index 8ff43d5a1..8ae37bd21 100644 --- a/InCallUI/src/com/android/incallui/InCallActivity.java +++ b/InCallUI/src/com/android/incallui/InCallActivity.java @@ -269,6 +269,11 @@ public class InCallActivity extends Activity { private void setUpPresenters() { InCallPresenter mainPresenter = InCallPresenter.getInstance(); + mCallButtonFragment.getPresenter().setAudioModeProvider( + mainPresenter.getAudioModeProvider()); + mCallCardFragment.getPresenter().setAudioModeProvider( + mainPresenter.getAudioModeProvider()); + mainPresenter.addListener(mCallButtonFragment.getPresenter()); mainPresenter.addListener(mCallCardFragment.getPresenter()); mainPresenter.addListener(mAnswerFragment.getPresenter()); |