summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-08-09 22:28:03 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-09 22:28:03 +0000
commitd121059a49b2a771bb5c25f7dc8fa6ab45242a92 (patch)
treeea7b981ebb79c9b0b1e701ec6ac8ee5d9d91bcf0
parenta53c9ced8f3f6854bb1d359ec3d8f3cbc72fe2e7 (diff)
parentbddd6fb09fb0bbf7787e600b3b4c044482a94d61 (diff)
Merge "Make sure to not call getTelephonyManager with null context" into klp-dev
-rw-r--r--src/com/android/dialer/dialpad/DialpadFragment.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java
index e11337427..f3a1e99f5 100644
--- a/src/com/android/dialer/dialpad/DialpadFragment.java
+++ b/src/com/android/dialer/dialpad/DialpadFragment.java
@@ -1663,6 +1663,10 @@ public class DialpadFragment extends Fragment
// TODO: Filter out emergency numbers if
// the carrier does not want redial for
// these.
+ // If the fragment has already been detached since the last time
+ // we called queryLastOutgoingCall in onResume there is no point
+ // doing anything here.
+ if (getActivity() == null) return;
mLastNumberDialed = number;
updateDialAndDeleteButtonEnabledState();
}