Only show "Emergency calls only" if a GSM device is voice capable. rel-roth-r2-partner rel-roth-r3-partner rel-tegranote-r3-partner daily-2013.10.28.1_rel-roth-r2-partner daily-2013.10.28.2_rel-roth-r2-partner daily-2013.10.29.0_rel-roth-r2-partner daily-2013.11.06.0_rel-roth-r2-partner daily-2013.12.03.0_rel-roth-r3-partner daily-2013.12.26.0_rel-roth-r3-partner daily-2014.01.08.0_rel-tegranote-r3-partner daily-2014.02.03.0_rel-roth-r3-partner
authorWink Saville <wink@google.com>
Mon, 8 Jul 2013 23:25:40 +0000 (16:25 -0700)
committerWink Saville <wink@google.com>
Mon, 8 Jul 2013 23:25:40 +0000 (16:25 -0700)
commit9c430a4d72c8c962caefb916e82a4c82eca7068c
tree53b4bc4af5f8f6fa0085309898685178b1e24290
parent0c5a2697697b49228bd2e23dc8d8217877a0fd7b
Only show "Emergency calls only" if a GSM device is voice capable.

This fix uses the config_voice_capable compile time switch to be
sure GsmServiceStateTracker.mEmergencyOnly is false if the device
isn't voice capable. Thus GsmServiceStateTracker.updateSpnDisplay
will not send the SPN_STRINGS_UPDATED_ACTION intent with
emergency_calls_only as the PLMN. Instead, it will aways be the
string defined by the lockscreen_carrier_default, typically
"No service".

Bug: 9422921
Change-Id: I74e89c4a29d0d8e3d5cc1726adedb0c2634cf257
src/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java