Fix toString() of resource Configuration for Mobile network code

The code was compared to 0 when printing. However, 0 can be a valid
value and MNC_ZERO should be used instead for the comparison.

Test: N/A
Change-Id: I9440db1ae779549650518d80da439e0060a0beca
This commit is contained in:
Sandro Meier
2023-02-06 13:30:25 +00:00
parent adfdad85e6
commit f7f8060859

View File

@@ -1107,7 +1107,7 @@ public final class Configuration implements Parcelable, Comparable<Configuration
} else {
sb.append("?mcc");
}
if (mnc != 0) {
if (mnc != MNC_ZERO) {
sb.append(mnc);
sb.append("mnc");
} else {