mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-10 16:02:25 +01:00
Recognize media template apps and group them under Music
This commit is contained in:
1 parent
246f571a86
commit
4a6305052d
2 files changed
+4
No files matched your search
@@ -187,6 +187,8 @@ private fun groupOf(entry: Entry, mediaPackages: Set<String>): AppGroup {
|
||||
return when (app.kind) {
|
||||
"calling" -> AppGroup.PHONE
|
||||
"navigation", "poi", "parking", "charging" -> AppGroup.MAPS
|
||||
// Template-only media apps may have no legacy browser/player tile to identify them.
|
||||
"media" -> AppGroup.MUSIC
|
||||
"messaging" -> AppGroup.MESSAGING
|
||||
"settings" -> AppGroup.SETTINGS
|
||||
else -> AppGroup.OTHER
|
||||
|
||||
@@ -78,5 +78,7 @@ object CarAppCatalog {
|
||||
CarAppService.CATEGORY_SETTINGS_APP,
|
||||
CarAppService.CATEGORY_IOT_APP,
|
||||
CarAppService.CATEGORY_WEATHER_APP,
|
||||
// Newer apps declare MEDIA, but our AndroidX 1.7 dependency has no constant for it.
|
||||
"androidx.car.app.category.MEDIA",
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user