Skip to content

Commit

Permalink
Fix deprecated API usage in sample app. (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite committed May 9, 2024
1 parent 88c46b5 commit fb469cb
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import androidx.compose.material.TopAppBar
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
Expand Down Expand Up @@ -136,10 +136,8 @@ private fun BackIconButton(
IconButton(
onClick = onBackPressed,
content = {
// https://github.com/JetBrains/compose-multiplatform/issues/4172
@Suppress("DEPRECATION", "KotlinRedundantDiagnosticSuppress")
Icon(
imageVector = Icons.Default.ArrowBack,
imageVector = Icons.AutoMirrored.Filled.ArrowBack,
contentDescription = null,
)
},
Expand Down

0 comments on commit fb469cb

Please sign in to comment.