Désiré Werner Menrath 38290cc27f Refactor: Implement robust list locking mechanism
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.
2025-10-20 11:07:48 +02:00
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
2.4 MiB
Languages
Kotlin 98%
Python 2%