[mobile] use a mobile context when loading the internet tile's title
The bug: Since mobile iconograpy can be overridden by the mcc-mnc resource qualifiers, we have to generate a context with the resources properly configured just to be able to load the correct string for a given carrier. E.g, if mcc111-mnc222 uses "5G OK" for their content, then we have to create a Resources object with that mcc-mnc combination to get the string. That's just the way it is. The fix: For now, we can create a new mobile context in the InternetTileViewModel and InternetTileDataInteractor (since the flag has not fully rolled out yet) so that the string is correct. The future: we should just do away with this style of override in the future, but that is a much larger change. Test: InternetTileViewModelTest Test: InternetTileDataInteractorTest Test: manually via demo mode and `-e mccmnc 310004` with the network command. Bug: 410697005 Flag: EXEMPT bugfix Change-Id: I9b7aca574f553e5b9530b2490523878c5a625ad6
Loading
Please register or sign in to comment