summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-08-09 08:20:06 -0700
committerYorke Lee <yorkelee@google.com>2013-08-09 13:37:16 -0700
commitbddd6fb09fb0bbf7787e600b3b4c044482a94d61 (patch)
treeb96585701a3a7ddd13bfc37eae085024669ff573
parent15ef3e1d3772d9e35182572fed9b0f1c7c958547 (diff)
Make sure to not call getTelephonyManager with null context
Bug: 9465444 Change-Id: Ibe7f463da5ba0a5276701fa10ce01c28a5d4b16d
-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 3052c67f0..12050a122 100644
--- a/src/com/android/dialer/dialpad/DialpadFragment.java
+++ b/src/com/android/dialer/dialpad/DialpadFragment.java
@@ -1660,6 +1660,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();
}