Wear: Migrate LoopStatusActivity and WizardResultActivity to Jetpack Compose#4624
Merged
MilosKozak merged 4 commits intonightscout:composefrom Mar 23, 2026
Conversation
…Compose Dependencies: - Add androidx.wear.compose:compose-material3 + compose-foundation 1.5.6 LoopStatusActivity: - Replace XML/Views with Compose Column + verticalScroll - Sealed UiState (Loading/Error/Success), AnimatedVisibility for expandable OpenAPS reason - Custom animated RefreshButton (press scale/alpha via pointerInput) WizardResultActivity: - Replace ViewPager2 + fragments with HorizontalPager (wear pager) - WizardResultFragment, WizardConfirmFragment, WizardResultViewBuilder deleted - WizardResultScreen: collapsed/expanded layout with verticalScroll when expanded - WizardConfirmScreen: centered confirm button with haptic feedback - HorizontalPageIndicator replacing swipe-hint arrows - WearActivitiesModule: remove fragment @ContributesAndroidInjector entries Cleanup: - Delete 8 orphaned layout XMLs, 3 drawables
…one app - Reorder rows: BG → Trend → COB → Carbs → Subtotal → [X%] → IOB → Total - Subtotal always shown (computed from scaled components sum) - Percentage row (X%) only shown when percentage ≠ 100, value = subtotal × % - Rename "Corr. X%" label to "X%" - Remove unused totalBeforePercentage
- Only show HorizontalDivider if IOB row is visible
- Only show the subtotal row if there is more than one calculation component. - Conditionally show the subtotal/percentage section only when relevant.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Tested ok with Virtual Pump (Dash). Some screenshots:
Dependencies:
LoopStatusActivity:
WizardResultActivity:
Cleanup: