Telephony: Ignore events on a destroyed phone
authorWink Saville <wink@google.com>
Thu, 12 Sep 2013 20:40:41 +0000 (13:40 -0700)
committerWink Saville <wink@google.com>
Thu, 12 Sep 2013 20:40:41 +0000 (13:40 -0700)
commit5e2000b856a7959609e8f15148a3584ec372f865
treebcdfa1ed6be9e20d969ece461451e4a8f386f157
parentcfc20537a6442471fe27037e62380b29214f0f24
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