NullPointerException for Internet quick panel(slice) in Settings

Add the networkToIconLookup icon mapping for NETWORK_TYPE_GPRS.

Bug: 203672925
Test: build pass
Change-Id: I6de4e624ef762605c78a42c20b77e02153ac4953
This commit is contained in:
SongFerngWang
2021-11-15 20:34:00 +08:00
parent 61569f50fb
commit 8ee29b7316

View File

@@ -113,6 +113,8 @@ public class MobileMappings {
TelephonyIcons.UNKNOWN);
networkToIconLookup.put(toIconKey(TelephonyManager.NETWORK_TYPE_EDGE),
TelephonyIcons.E);
networkToIconLookup.put(toIconKey(TelephonyManager.NETWORK_TYPE_GPRS),
TelephonyIcons.G);
networkToIconLookup.put(toIconKey(TelephonyManager.NETWORK_TYPE_CDMA),
TelephonyIcons.ONE_X);
networkToIconLookup.put(toIconKey(TelephonyManager.NETWORK_TYPE_1xRTT),
@@ -122,6 +124,8 @@ public class MobileMappings {
TelephonyIcons.THREE_G);
networkToIconLookup.put(toIconKey(TelephonyManager.NETWORK_TYPE_EDGE),
TelephonyIcons.THREE_G);
networkToIconLookup.put(toIconKey(TelephonyManager.NETWORK_TYPE_GPRS),
TelephonyIcons.THREE_G);
networkToIconLookup.put(toIconKey(TelephonyManager.NETWORK_TYPE_CDMA),
TelephonyIcons.THREE_G);
networkToIconLookup.put(toIconKey(TelephonyManager.NETWORK_TYPE_1xRTT),