diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-25 00:11:31 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-03-25 00:11:31 -0700 |
commit | 1dfa8ddc17a7f62f14d8435fd9712d1be0ebdf7e (patch) | |
tree | fb8418f9b5d2b6547013efebd7b292176abf496d /src/com/android/dialer/dialpad/DialpadFragment.java | |
parent | 6720273a04f940de2b383128b7596f33d781f231 (diff) |
Fix NPE during activity recreation
Bug: 13630676
Change-Id: I3b68d5f21a4b77eab5b5493dcde670ad08cdc372
Diffstat (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 2d3c0ee32..36d5cf84b 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -1567,6 +1567,9 @@ public class DialpadFragment extends Fragment * Update the enabledness of the "Dial" and "Backspace" buttons if applicable. */ private void updateDialAndDeleteButtonEnabledState() { + if (getActivity() == null) { + return; + } final boolean digitsNotEmpty = !isDigitsEmpty(); mDelete.setEnabled(digitsNotEmpty); // On CDMA phones, if we're already on a call, we *always* enable the Dial button (since |