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

Skip to content
Commit 6e67f7d4 authored by Evan Laird's avatar Evan Laird
Browse files

[Mobile] Wrap AccessibilityContentDescriptions in a static getter

The content descriptions are mapped to level by their position in the
PHONE_SIGNAL_STRENGTH array, and thus are susceptible to out of bounds
index exceptions.

This change adds accessor methods to AccessibilityContentDescriptions
so that they can be checked (it's the responsibility of the caller to
check against a 0 return value which will throw if trying to get the
resource).

We also make the content description nullable and handle the resid=0
case.

Test: MobileIconViewModelTest
Bug: 328547883
Flag: NONE
Change-Id: Ifa55ad8184a5337390d9fa245311b4e9513c0233
parent d05b16c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment