From 95e37186c451067e9b43e7d2e21fdd857202fffb Mon Sep 17 00:00:00 2001 From: JP Date: Sat, 30 May 2026 22:33:31 -0700 Subject: [PATCH] Fix icon deprecation: migrate Icons.Filled.PlaylistAdd to Icons.AutoMirrored.Filled.PlaylistAdd Replace deprecated PlaylistAdd icon with AutoMirrored version and remove @Suppress deprecation annotation. --- .../java/com/jpcottin/simpletorrent/ui/main/MainScreen.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/jpcottin/simpletorrent/ui/main/MainScreen.kt b/app/src/main/java/com/jpcottin/simpletorrent/ui/main/MainScreen.kt index f859759..47e7e63 100644 --- a/app/src/main/java/com/jpcottin/simpletorrent/ui/main/MainScreen.kt +++ b/app/src/main/java/com/jpcottin/simpletorrent/ui/main/MainScreen.kt @@ -28,6 +28,7 @@ import androidx.compose.foundation.lazy.grid.items import androidx.compose.foundation.text.KeyboardActions import androidx.compose.foundation.text.KeyboardOptions import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.automirrored.filled.PlaylistAdd import androidx.compose.material.icons.filled.Add import androidx.compose.material.icons.filled.Delete import androidx.compose.material.icons.filled.Description @@ -37,7 +38,6 @@ import androidx.compose.material.icons.filled.FolderOpen import androidx.compose.material.icons.filled.Pause import androidx.compose.material.icons.filled.PlayArrow import androidx.compose.material.icons.filled.PlayCircle -import androidx.compose.material.icons.filled.PlaylistAdd import androidx.compose.material.icons.filled.Share import androidx.compose.material3.AlertDialog import androidx.compose.material3.Button @@ -326,8 +326,7 @@ internal fun MagnetInputBar( ) Button(onClick = onAdd) { Text("Add") } IconButton(onClick = onSampleTorrents) { - @Suppress("DEPRECATION") - Icon(Icons.Filled.PlaylistAdd, contentDescription = "Sample torrents") + Icon(Icons.AutoMirrored.Filled.PlaylistAdd, contentDescription = "Sample torrents") } Box { IconButton(onClick = { showCreateMenu = true }) {