Fix crash with MMI code *#06#
The code was calling getWindow().setType() on the IMEI dialog *after* showing it. The code had been doing that all along, but starting about a week ago (change Iac63da) the framework now also throws an exception if you do that :-( Turns out there's no need to set TYPE_PRIORITY_PHONE in this case anyway, since the dialer UI can't run on top of the keyguard in the first place (and the contacts app doesn't have the SYSTEM_ALERT_WINDOW permission anyway.) So just remove the offending call. (Note there's also a corresponding fix under apps/Phone for this same issue. Also, I double-checked all the *other* Window.setType() calls in Phone and Contacts, and we don't have this same problem anywhere else.) TESTED: Launch dialer, dial "*#06#": IMEI panel correctly comes up. Bug: 5279270 Change-Id: Ie19ec1414fc6096ee2c84fe716259304bff7a33b
Loading
Please register or sign in to comment