mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-29 14:27:39 +00:00 
			
		
		
		
	Improved PlaylistHeader
This commit is contained in:
		| @@ -57,23 +57,21 @@ fun PlaylistHeader(playlistInfo: PlaylistInfo, totalDuration: Long) { | ||||
|         Text(text = playlistInfo.name, style = MaterialTheme.typography.titleMedium) | ||||
|  | ||||
|         Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween) { | ||||
|             val clickable = playlistInfo.uploaderName != null && playlistInfo.uploaderUrl != null | ||||
|  | ||||
|             Row( | ||||
|                 verticalAlignment = Alignment.CenterVertically, | ||||
|                 horizontalArrangement = Arrangement.spacedBy(4.dp), | ||||
|                 modifier = Modifier.let { | ||||
|                     if (playlistInfo.uploaderName != null && playlistInfo.uploaderUrl != null) { | ||||
|                         it.clickable { | ||||
|                             try { | ||||
|                                 NavigationHelper.openChannelFragment( | ||||
|                                     (context as FragmentActivity).supportFragmentManager, | ||||
|                                     playlistInfo.serviceId, playlistInfo.uploaderUrl, | ||||
|                                     playlistInfo.uploaderName | ||||
|                                 ) | ||||
|                             } catch (e: Exception) { | ||||
|                                 ErrorUtil.showUiErrorSnackbar(context, "Opening channel fragment", e) | ||||
|                             } | ||||
|                         } | ||||
|                     } else it | ||||
|                 modifier = Modifier.clickable(clickable) { | ||||
|                     try { | ||||
|                         NavigationHelper.openChannelFragment( | ||||
|                             (context as FragmentActivity).supportFragmentManager, | ||||
|                             playlistInfo.serviceId, playlistInfo.uploaderUrl, | ||||
|                             playlistInfo.uploaderName | ||||
|                         ) | ||||
|                     } catch (e: Exception) { | ||||
|                         ErrorUtil.showUiErrorSnackbar(context, "Opening channel fragment", e) | ||||
|                     } | ||||
|                 } | ||||
|             ) { | ||||
|                 val imageModifier = Modifier | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Isira Seneviratne
					Isira Seneviratne