summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-03-02 16:53:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-02 16:53:28 +0000
commita695b86ebbf468fb3e4417837127aed4a10577d0 (patch)
treece6dbc0b96c2631df19e5f751e734659b3d10c70
parent425b3ed28c8cb7b7f80a4b7fa7470b59639e2465 (diff)
parentd5c4aad9e9a957fdaf30c9efe7d99fa4db0ff3b8 (diff)
Merge "Update some comments in InCallActivity"
-rw-r--r--InCallUI/src/com/android/incallui/InCallActivity.java27
1 files changed, 2 insertions, 25 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java
index f75c33b23..32bee93a7 100644
--- a/InCallUI/src/com/android/incallui/InCallActivity.java
+++ b/InCallUI/src/com/android/incallui/InCallActivity.java
@@ -59,7 +59,7 @@ import java.util.List;
import java.util.Locale;
/**
- * Phone app "in call" screen.
+ * Main activity that the user interacts with while in a live call.
*/
public class InCallActivity extends Activity {
@@ -136,7 +136,6 @@ public class InCallActivity extends Activity {
// TODO(klp): Do we need to add this back when prox sensor is not available?
// lp.inputFeatures |= WindowManager.LayoutParams.INPUT_FEATURE_DISABLE_USER_ACTIVITY;
- // Inflate everything in incall_screen.xml and add it to the screen.
setContentView(R.layout.incall_screen);
initializeInCall();
@@ -265,21 +264,6 @@ public class InCallActivity extends Activity {
return mDialog != null;
}
- /**
- * Dismisses the in-call screen.
- *
- * We never *really* finish() the InCallActivity, since we don't want to get destroyed and then
- * have to be re-created from scratch for the next call. Instead, we just move ourselves to the
- * back of the activity stack.
- *
- * This also means that we'll no longer be reachable via the BACK button (since moveTaskToBack()
- * puts us behind the Home app, but the home app doesn't allow the BACK key to move you any
- * farther down in the history stack.)
- *
- * (Since the Phone app itself is never killed, this basically means that we'll keep a single
- * InCallActivity instance around for the entire uptime of the device. This noticeably improves
- * the UI responsiveness for incoming calls.)
- */
@Override
public void finish() {
Log.i(this, "finish(). Dialog showing: " + (mDialog != null));
@@ -333,7 +317,7 @@ public class InCallActivity extends Activity {
// Always disable the Back key while an incoming call is ringing
final Call call = CallList.getInstance().getIncomingCall();
if (call != null) {
- Log.d(this, "Consume Back press for an incoming call");
+ Log.i(this, "Consume Back press for an incoming call");
return;
}
@@ -429,13 +413,6 @@ public class InCallActivity extends Activity {
// key events to the DTMFDialer's onDialerKeyDown.
if (mDialpadFragment != null && mDialpadFragment.isVisible()) {
return mDialpadFragment.onDialerKeyDown(event);
-
- // TODO: If the dialpad isn't currently visible, maybe
- // consider automatically bringing it up right now?
- // (Just to make sure the user sees the digits widget...)
- // But this probably isn't too critical since it's awkward to
- // use the hard keyboard while in-call in the first place,
- // especially now that the in-call UI is portrait-only...
}
return false;