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

Skip to content
Commit 34a11cd8 authored by Ladios Jonquil's avatar Ladios Jonquil Committed by Steve Kondik
Browse files

gsm: Show localized SPN only when it matches system locale (1/2)

This adds child tag <spn locale="LOCALE">SPN</spn> to <spnOverride/> of
SPN overrides list (/system/etc/spn-conf.xml). LOCALE takes the format
of java.util.Locale (e.g.: en en_US). For example of the xml file, see
the new revision in part 2 - http://review.cyanogenmod.com/10038

SPN override used to be assigned only on SIM ready. Now it is updated on
every system locale change. It's applied when:

* There is a <spn> entry of the carrier whose locale= attribute matches
  the current system locale.

* No <spn> entry of the carrier that matches, but <spnOverride>'s spn=
  attribute (as the default SPN) is provided.

Otherwise, meaning no locale= matches and spn= is also omitted, the SPN
that read from SIM card would be applied.

Change-Id: Ib488219f8e8d8cd0962136d0a581c88ecb8458c4
parent efd067d2
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