3 Commits

Author SHA1 Message Date
Heemin Seog
c39e4bf51e Restrict showing "new ringtone" for missing picker
Automotive builds can come without a file picker. In such cases, the
RingtonePickerActivity shouldn't need to show the "Add New Ringtone"
list item.

Bug: 138454052
Test: manual
Change-Id: Iceb5555493420898d6eafe79e3299d5bd3a77a98
2019-09-13 10:26:29 -07:00
Jeff Sharkey
77d67325f3 Migrate CheckedListItem missed in refactoring.
Bug: 134542205
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I3d6c28cbe1a9bf29f1a314954fa2541371194935
2019-08-22 09:42:42 -06:00
Jeff Sharkey
8f18b2a0c1 Migrate ringtone picking out of MediaProvider.
Some OEMs have requested the ability to customize the ringtone
picker logic, and that's already supported by the existing
"config_defaultRingtonePickerEnabled" parameter today.

This change is a clean refactoring of the AOSP ringtone picker out
of MediaProvider and into a new "SoundPicker" module, which is
consistent with how some OEMs have already defined their own
"SoundPickerPrebuilt" module.

Bug: 134542205
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Iadc60e731e6dcfce651f89bc7598e65541ab0ddf
2019-08-21 14:58:59 -06:00