Artist/track/album form with a "played" time chip (now to yesterday) that submits through ScrobbleRepository. On success the form clears but keeps the time choice, and History reloads when revisited so the new play shows. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e4c19cc9ac
commit
16f701c855
7 files changed
+252
-4
No files matched your search
@@ -26,11 +26,11 @@ class MainActivity : ComponentActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
enableEdgeToEdge()
|
||||
super.onCreate(savedInstanceState)
|
||||
val history = (application as ScrobbledApplication).history
|
||||
val app = application as ScrobbledApplication
|
||||
setContent {
|
||||
ScrobbledTheme {
|
||||
val state by connectVm.state.collectAsState()
|
||||
if (state.connected) ScrobbledApp(history, onSignOut = connectVm::disconnect) else ConnectScreen(connectVm)
|
||||
if (state.connected) ScrobbledApp(app.history, app.scrobbles, onSignOut = connectVm::disconnect) else ConnectScreen(connectVm)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user