Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d2c46a7e authored by Jiazeng Tian's avatar Jiazeng Tian Committed by Yuuki Habu
Browse files

Unregister data enabled changed listener on default phone

[Description]
"com.android.phone" process crash after ACTION_IMS_SERVICE_DOWN
is sent out when ImsPhone is ready.

[Root cause]
When ACTION_IMS_SERVICE_DOWN is sent out, ImsPhone is disposed
and ImsPhoneCallTracker unregisters data enabled changed listener
in DcTracker from instance of ImsPhone but ImsPhone has no
object of DcTracker(i.e. null) then NullPointerException
has been happend.

[Solution]
When ImsPhoneCallTracker unregisters the listener, it refers
to default GsmCdmaPhone which it has an object of DcTracker

NOTE:
When ImsPhoneCallTracker registers the listener, it already refer
to default GsmCdmaPhone.

Test: manual with adb command to send IMS related intent.
Bug: 34206487
Change-Id: Iac9636de33074634fe9ccd451d510b4863bdc9ba
parent c47d77c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment