Ensure empty string MMI responses default to "MMI Complete".
authorTyler Gunn <tgunn@google.com>
Wed, 21 Jun 2017 17:08:46 +0000 (10:08 -0700)
committerTyler Gunn <tgunn@google.com>
Wed, 21 Jun 2017 17:08:46 +0000 (10:08 -0700)
commitf5bd60e5d8cb7700aced832ee685da8a77044a22
tree09fdcd09823d9755a0a0bc9170d4421cb6705d21
parent041b6e81c00ebc29af3bac1581a0d78d2c8fcf4b
Ensure empty string MMI responses default to "MMI Complete".

The existing code checks for null only, but it looks like the modem or
network can sometimes return empty string when there is not result,
which would cause no "MMI Complete" dialog to show.
Checking for empty string as well will solve this problem.

Test: Regression tested MMI codes.
Bug: 37561464
Change-Id: I09caec7eae944bd3dfe97ac8f89c8a113800de1e
src/java/com/android/internal/telephony/gsm/GsmMmiCode.java
src/java/com/android/internal/telephony/imsphone/ImsPhoneMmiCode.java