Skip to content

Commit

Permalink
Add reload button to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Jun 30, 2023
1 parent edd756d commit 04cec8f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.Brush
import androidx.compose.material.icons.rounded.Refresh
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.runtime.saveable.rememberSaveable
Expand Down Expand Up @@ -60,6 +61,12 @@ fun MainContent() {
Text(text = "Demo")
},
actions = {
IconButton(onClick = {
player.source = source
player.play()
}) {
Icon(Icons.Rounded.Refresh, contentDescription = "Reload")
}
IconButton(onClick = { themeMenuOpen = true }) {
Icon(Icons.Rounded.Brush, contentDescription = "Theme")
}
Expand Down

0 comments on commit 04cec8f

Please sign in to comment.