summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-10-31 21:35:00 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-31 21:35:00 +0000
commitd5538b192a172ed5f700fe2055c6a86c71df7424 (patch)
treefc31123177c3c5b57ce8c070f609427f4fb29490 /InCallUI
parent41cf10443803d11ad5901e1c80a914510831ead0 (diff)
parent0700c475ea05bda84e7abd6e70e0ebdc1730a738 (diff)
am 27e7f76f: am f413d94c: Merge "Call InCallPresenter.setActivity(null) in onPause" into lmp-mr1-dev
* commit '27e7f76f138d889c1d08fb5894198fb23a5ac090': Call InCallPresenter.setActivity(null) in onPause
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/InCallActivity.java8
-rw-r--r--InCallUI/src/com/android/incallui/InCallPresenter.java2
2 files changed, 5 insertions, 5 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java
index 8382c1639..c410b5ffc 100644
--- a/InCallUI/src/com/android/incallui/InCallActivity.java
+++ b/InCallUI/src/com/android/incallui/InCallActivity.java
@@ -30,7 +30,6 @@ import android.graphics.Point;
import android.net.Uri;
import android.os.Bundle;
import android.telecom.DisconnectCause;
-import android.telecom.PhoneAccount;
import android.telecom.PhoneAccountHandle;
import android.telephony.PhoneNumberUtils;
import android.text.TextUtils;
@@ -228,6 +227,10 @@ public class InCallActivity extends Activity {
}
InCallPresenter.getInstance().onUiShowing(false);
+
+ if (isFinishing()) {
+ InCallPresenter.getInstance().setActivity(null);
+ }
}
@Override
@@ -239,9 +242,6 @@ public class InCallActivity extends Activity {
@Override
protected void onDestroy() {
Log.d(this, "onDestroy()... this = " + this);
-
- InCallPresenter.getInstance().setActivity(null);
-
super.onDestroy();
}
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java
index 1299dd32d..297ecb807 100644
--- a/InCallUI/src/com/android/incallui/InCallPresenter.java
+++ b/InCallUI/src/com/android/incallui/InCallPresenter.java
@@ -275,7 +275,7 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener {
return;
}
} else {
- Log.i(this, "UI Destroyed)");
+ Log.i(this, "UI Destroyed");
updateListeners = true;
mInCallActivity = null;