Skip to content

Commit

Permalink
SystemUI: show "4G" indicator for HSPA+ network
Browse files Browse the repository at this point in the history
For a specific network, HSPA+ may be required to show "4G" indicator,
add this patch to meet requirement for this type of networks.

CRs-Fixed: 832506
Change-Id: I277f0fffa54a35a943014017369319603ad22c41
  • Loading branch information
Fang Yunong authored and Gerrit - the friendly Code Review server committed Dec 25, 2015
1 parent 80ea0e7 commit bd7ff5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/SystemUI/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -327,5 +327,8 @@

<!-- Whether or not to show battery level text. -->
<bool name="config_showBatteryPercentage">false</bool>

<!-- Show 4G for HSPAP -->
<bool name="config_show4gForHspap">false</bool>
</resources>

Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@ private void mapIconSets() {
mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_HSDPA, hGroup);
mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_HSUPA, hGroup);
mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_HSPA, hGroup);
mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_HSPAP, hGroup);
if (mContext.getResources().getBoolean(R.bool.config_show4gForHspap)) {
mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_HSPAP, TelephonyIcons.FOUR_G);
} else {
mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_HSPAP, hGroup);
}

if (mConfig.show4gForLte) {
mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_LTE, TelephonyIcons.FOUR_G);
Expand Down

0 comments on commit bd7ff5c

Please sign in to comment.