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

Commit e5d8fd84 authored by SongFerngWang's avatar SongFerngWang Committed by SongFerng Wang
Browse files

Fix queryCLIP's ClassCastException

The queryCLIP typed cast ImsSsInfo to Bundle, and
caused the ClassCastException

Bug: 181528321
Test: make build pass.
Change-Id: I6e78cbd6106fe98a439bceda1caaf7da21525b22
Merged-In: I6e78cbd6106fe98a439bceda1caaf7da21525b22
parent bab5dcdd
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -1837,9 +1837,9 @@ public class ImsPhone extends ImsPhoneBase {
                break;
                break;


            case EVENT_GET_CLIP_DONE:
            case EVENT_GET_CLIP_DONE:
                Bundle ssInfoResp = null;
                ImsSsInfo ssInfoResp = null;
                if (ar.exception == null) {
                if (ar.exception == null && ar.result instanceof ImsSsInfo) {
                    ssInfoResp = (Bundle) ar.result;
                    ssInfoResp = (ImsSsInfo) ar.result;
                }
                }
                if (ss != null) {
                if (ss != null) {
                    sendResponseOrRetryOnCsfbSs(ss, msg.what, ar.exception, ssInfoResp);
                    sendResponseOrRetryOnCsfbSs(ss, msg.what, ar.exception, ssInfoResp);