Make TogglePermissionAppListModel, AppInfoPage and Footer could support using...
Make TogglePermissionAppListModel, AppInfoPage and Footer could support using AnnotatedString for the permission description.
- Adds AnnotatedStringResource helper methods to help convert spannable strings from xml file to AnnotatedString.
- Currently only supports StyleSpan and URLSpan.
- In Footer: adds AnnotatedString support and uses ClickableText to support URLSpan click handling.
- In AppInfoPage: prioritize Footer with AnnotatedString usage when provided footerAnnotatedString is not empty.
- In TogglePermissionAppInfoPage: adds footerAnnotatedString parameter passing.
- In TogglePermissionAppListModel: adds @Composable footerAnnotatedString() method with default empty AnnotatedString return.
Legal tracker bug: 262937731
Privacy tracker bug: 262936913
UX tracker bug: 262938050
Bug: 259436697
Bug: 263163538
Test: SettingsLib/Settings/SettingsGoogle builds.
Test: atest SpaLibTests:com.android.settingslib.spa.framework.util.AnnotatedStringResourceTest
Change-Id: I3cc7dfde298f78f435703c266a1f09e9dc31cff7
Loading
Please register or sign in to comment