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

Commit b388fae6 authored by Evan Laird's avatar Evan Laird
Browse files

[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
parent 2a8cf295
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment