Skip to content
Commit 8071dcee authored by Steven Lee's avatar Steven Lee
Browse files

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
parent f864b5a8
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