Telephony: Ignore events on a destroyed phone
authorWink Saville <wink@google.com>
Thu, 12 Sep 2013 20:40:41 +0000 (13:40 -0700)
committerThe Android Automerger <android-build@google.com>
Fri, 13 Sep 2013 00:27:15 +0000 (17:27 -0700)
commite7f126d0230b75d30bee23d1ad2ae1b73058de37
tree75617cf45f428a5df9050de692258ef8ca9d4897
parenta4ac174f628244a7a89289b90af1287a8502fdb1
Telephony: Ignore events on a destroyed phone

It is possible to receive responses from RIL after phone has released
it's references. Ignore events in such cases, since those events no
longer make sense, and some phone members have been de-initialized.

Make CallTrackers notify UI when ending calls in dispose, since
it has already unregistered, and won't receive the CALL_STATE_CHANGED

Change-Id: I5d8fd9ce3f74b9ae9b5b645565bd24d11be0aebc
CRs-Fixed: 228731, 228005, 415801, 350739
src/java/com/android/internal/telephony/PhoneBase.java
src/java/com/android/internal/telephony/cdma/CDMAPhone.java
src/java/com/android/internal/telephony/cdma/CdmaCallTracker.java
src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java
src/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
src/java/com/android/internal/telephony/gsm/GSMPhone.java
src/java/com/android/internal/telephony/gsm/GsmCallTracker.java
src/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java