summaryrefslogtreecommitdiff
path: root/InCallUI/src/com/android/incallui/InCallActivity.java
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2013-08-29 12:08:19 -0700
committerSantos Cordon <santoscordon@google.com>2013-08-29 12:08:19 -0700
commitb3dcd58432b0468ea9d69757f38051b94f2c05e4 (patch)
tree7608f90c21102bfa020a784cdfb362c78945c805 /InCallUI/src/com/android/incallui/InCallActivity.java
parentfacff288cfbdfcfd9281a64fa05a78532acf3d90 (diff)
Move initializeInCall to onStart().
UI for presenters are not ready until after onViewCreated(). However, initializeInCall gets calls before that as as part of the activity's onCreate. Move this initialization to onStart so that the initialize process happens only after all the UI is ready. bug: 10544690 Change-Id: I6f0db720ff8a5436f560850af7fb1c1fd7795ae5
Diffstat (limited to 'InCallUI/src/com/android/incallui/InCallActivity.java')
-rw-r--r--InCallUI/src/com/android/incallui/InCallActivity.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java
index 5915ecfb4..fee4d9510 100644
--- a/InCallUI/src/com/android/incallui/InCallActivity.java
+++ b/InCallUI/src/com/android/incallui/InCallActivity.java
@@ -57,12 +57,17 @@ public class InCallActivity extends Activity {
// Inflate everything in incall_screen.xml and add it to the screen.
setContentView(R.layout.incall_screen);
- initializeInCall();
-
Log.d(this, "onCreate(): exit");
}
@Override
+ protected void onStart() {
+ super.onStart();
+
+ initializeInCall();
+ }
+
+ @Override
protected void onResume() {
Log.d(this, "onResume()...");
super.onResume();
@@ -282,10 +287,10 @@ public class InCallActivity extends Activity {
mDialpadFragment.getView().setVisibility(View.INVISIBLE);
}
- setUpPresenters();
+ setUpPresenterCallbacks();
}
- private void setUpPresenters() {
+ private void setUpPresenterCallbacks() {
InCallPresenter mainPresenter = InCallPresenter.getInstance();
mCallButtonFragment.getPresenter().setAudioModeProvider(