Skip to content

Fix main screen layout syntax error#6

Merged
Dev97633 merged 1 commit intomainfrom
codex/fix-syntax-error-in-mainactivity.kt
Feb 4, 2026
Merged

Fix main screen layout syntax error#6
Dev97633 merged 1 commit intomainfrom
codex/fix-syntax-error-in-mainactivity.kt

Conversation

@Dev97633
Copy link
Copy Markdown
Owner

@Dev97633 Dev97633 commented Feb 4, 2026

Motivation

  • Restore correct Kotlin structure in MainActivity.kt to fix a compile-time syntax error originating from misaligned AnimatedContent/AlertDialog blocks.
  • Ensure the confirmation dialog for disable/enable/uninstall actions is rendered in the correct scope so UI branching behaves deterministically.

Description

  • Reorganized the AnimatedContent when (screen) branches to close the composable block properly and reindent the apps, details, and about cases.
  • Moved and reformatted the confirmAction?.let { ... AlertDialog(...) } block so the dialog is declared outside of the AnimatedContent rendering closure.
  • Preserved existing action handling logic for disable, enable, and uninstall, while fixing brace/indentation issues that caused the syntax error.
  • Only app/src/main/kotlin/com/dev/debloater/MainActivity.kt was modified.

Testing

  • No automated tests were run after the change.
  • The change was made to address a Kotlin syntax error that prevented compilation; please run ./gradlew assembleDebug or ./gradlew build to validate compilation in CI or locally.

Codex Task

@Dev97633 Dev97633 merged commit 75b47a4 into main Feb 4, 2026
1 check passed
@Dev97633 Dev97633 deleted the codex/fix-syntax-error-in-mainactivity.kt branch February 4, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant