-
Notifications
You must be signed in to change notification settings - Fork 91
Fix RND-463. #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix RND-463. #247
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes Compose recomposition issues and improves the visual styling of the first-run conference selector dialog.
- Wraps the single-conference auto-selection in
LaunchedEffectto prevent repeated execution during recomposition - Replaces manual
Columnstyling withSurfacecomposable for proper Material Design theming - Removes unused imports that were added but not utilized
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| MainComposeView.kt | Wraps single-conference selection in LaunchedEffect to ensure it only executes once and uses first() instead of get(0) |
| FirstRunConferenceSelector.kt | Refactors dialog styling to use Surface composable and adds explicit text color for better theming |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| import androidx.compose.foundation.background | ||
| import androidx.compose.foundation.clickable | ||
| import androidx.compose.foundation.isSystemInDarkTheme |
Copilot
AI
Oct 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The isSystemInDarkTheme import is unused and should be removed. The code uses MaterialTheme.colorScheme for theming instead.
| import androidx.compose.foundation.isSystemInDarkTheme |
| import androidx.compose.ui.unit.dp | ||
| import androidx.compose.ui.window.Dialog | ||
| import co.touchlab.droidcon.domain.entity.Conference | ||
| import co.touchlab.droidcon.ui.theme.DroidconTheme |
Copilot
AI
Oct 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DroidconTheme import is unused and should be removed. The dialog relies on MaterialTheme which is already provided by the parent composable hierarchy.
| import co.touchlab.droidcon.ui.theme.DroidconTheme |
KevinSchildhorn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just doing this as a test
KevinSchildhorn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM


No description provided.