38290cc27fad824b484812038a995dde34e34dac
Refactors the list locking feature to be database-centric, resolving UI inconsistencies. The previous session-based unlocking mechanism caused issues where the UI would not update correctly after unlocking a list, as items were held in memory only. This commit implements a new lifecycle-aware approach: - When a locked list is opened, it is temporarily unlocked in the database (items are decrypted and inserted). - When the detail screen is closed, the list is automatically re-locked if it was locked initially (items are encrypted and removed from the DB). - This ensures that the UI always works with a consistent database state, fixing all related bugs (item creation, deletion, checking). - The `sessionUnlockedItems` logic has been completely removed from the ViewModels and MainActivity.
Description
Noteshop is a versatile and privacy-focused application for managing your notes, shopping lists, and recipes all in one place. It is designed to be simple, efficient, and fully under your control
Languages
Kotlin
98%
Python
2%