diff options
author | Yorke Lee <yorkelee@google.com> | 2014-10-31 16:53:57 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-31 16:53:57 +0000 |
commit | 0700c475ea05bda84e7abd6e70e0ebdc1730a738 (patch) | |
tree | ce0933a82703c41a3f10c5e110bf634fc5a23859 /InCallUI | |
parent | a5ca5ba75ca51ce6eacaf4390d11fd23a0be6b7d (diff) | |
parent | 6a0b4dd87b24ab805ff82bb1801190495ee78cc9 (diff) |
am f413d94c: Merge "Call InCallPresenter.setActivity(null) in onPause" into lmp-mr1-dev
* commit 'f413d94c10fdff825da887cc6398dc8c08ca489d':
Call InCallPresenter.setActivity(null) in onPause
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallActivity.java | 8 | ||||
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallPresenter.java | 2 |
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; |