Skip to content

Refactor PrismLock app structure and lifecycle - #6

Merged
AurelioMo merged 12 commits into
mainfrom
refactor/app
Nov 27, 2026
Merged

AurelioMo merged 12 commits into
mainfrom
refactor/app

Conversation

@AurelioMo

Copy link
Copy Markdown
Owner

Changes

  • Split settings and update presentation out of MainActivity. Move settings, update and catalog labels to Android resources. Give catalog tabs and the size control explicit accessibility focus and labels.
  • Separate catalog list construction and row binding from tab navigation. Keep catalog assets, variant selection and the persisted selection format intact.
  • Separate runtime configuration loading from LSPosed hook registration. Read the provider's preference row from one snapshot so its values match its revision.
  • Separate update download and package verification from installation. Discard partial downloads on interruption, retain a previously completed file if the new download fails, and release update callbacks and dialog views when the activity is destroyed.
  • Serialize import and removal operations. Publish a single settings revision for removal or reset, and preserve the catalog selection when only imported artwork is removed.
  • Dispose of obsolete preview results even if the view detached before decoding finished. Clamp image sampling inputs and honor Android's animation setting for UI selection feedback.

Validation

  • python3 scripts/check_catalog.py
  • python3 scripts/check_icon_loader.py
  • ./gradlew --no-daemon assembleDebug
  • ./gradlew --no-daemon testDebugUnitTest lintDebug
  • Added coverage for interrupted update transfers and imported artwork removal versus full reset. Existing Robolectric coverage includes API 26, 31 and 36. Samsung rendering and TalkBack still need device verification.

AurelioMo and others added 12 commits November 25, 2026 17:06
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hange

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AurelioMo
AurelioMo merged commit 6d9f7f4 into main Nov 27, 2026
1 check passed
@AurelioMo
AurelioMo deleted the refactor/app branch November 27, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant