diff options
author | Chiao Cheng <chiaocheng@google.com> | 2013-07-24 19:19:03 -0700 |
---|---|---|
committer | Chiao Cheng <chiaocheng@google.com> | 2013-07-24 19:19:03 -0700 |
commit | e58788a9fc47164e3586e862df1427b89cbe02db (patch) | |
tree | d5311650a5a00f9f0aa8def3d2c1124768d9ba43 /InCallUI/src/com/android/incallui/InCallActivity.java | |
parent | 3d1b6528a199c5a3e5a9053d476955037c4c6836 (diff) |
Finishing in call screen when call ends.
Change-Id: I80220deb47ec17fbfb017795f916ba0822ea41da
Diffstat (limited to 'InCallUI/src/com/android/incallui/InCallActivity.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallActivity.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java index c2e0b0516..71e981b94 100644 --- a/InCallUI/src/com/android/incallui/InCallActivity.java +++ b/InCallUI/src/com/android/incallui/InCallActivity.java @@ -30,7 +30,7 @@ import android.widget.Toast; /** * Phone app "in call" screen. */ -public class InCallActivity extends Activity { +public class InCallActivity extends Activity implements CallButtonPresenter.EndCallListener { private static final String TAG = InCallActivity.class.getSimpleName(); @@ -68,6 +68,7 @@ public class InCallActivity extends Activity { final CallButtonFragment callButtonFragment = (CallButtonFragment) getFragmentManager() .findFragmentById(R.id.callButtonFragment); mCallButtonPresenter = callButtonFragment.getPresenter(); + mCallButtonPresenter.setEndCallListener(this); // TODO(klp): create once and reset when needed. final AnswerFragment answerFragment = new AnswerFragment(); @@ -216,4 +217,9 @@ public class InCallActivity extends Activity { Log.d(TAG, msg); } } + + @Override + public void onCallEnd() { + finish(); + } } |