mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Fix NPE in now playing provider
This commit is contained in:
@@ -40,7 +40,7 @@ class NowPlayingProvider(context: Context) : SmartspaceDataSource(
|
||||
|
||||
val mediaInfo = tracking.info
|
||||
val artistAndAlbum = listOf(mediaInfo.artist, mediaInfo.album)
|
||||
.filter { it.isNotEmpty() }
|
||||
.filter { it?.isNotEmpty() == false }
|
||||
.joinToString(separator = context.getString(R.string.smartspace_media_info_separator))
|
||||
val subtitle = artistAndAlbum.ifEmpty {
|
||||
sbn?.getAppName(context) ?: context.getAppName(tracking.packageName)
|
||||
|
||||
Reference in New Issue
Block a user