Skip to content

Don't lock the locker while it's empty - #9

Merged
mattintech merged 1 commit into
developfrom
no-lock-when-empty
Nov 2, 2026
Merged

mattintech merged 1 commit into
developfrom
no-lock-when-empty

Conversation

@mattintech

Copy link
Copy Markdown
Owner

An empty locker (no documents and no folders) now opens straight away instead of showing the locked screen, both on first use and after auto-lock.

  • The catalog stores a plaintext "empty" flag next to its encrypted data, so the app can decide without needing the key that requires a fingerprint. Nothing is decrypted based on the flag, and catalogs saved before this change stay locked until they're saved again.
  • Showing the empty locker doesn't count as unlocking it. Saving the first document or creating the first folder asks for a fingerprint or PIN at that point.
  • Transfer, import, export and settings still ask for an unlock first, as before.
  • "Lock now" is hidden, and the auto-lock notification is skipped, while there's nothing to lock.

Tested on a Galaxy A17 with a fresh install: the locker opens without a prompt, saving the first document asks for a fingerprint, and the app locks normally after that.

Tests: SessionManagerTest (new cases), CatalogEmptyFlagTest.

An empty locker (no documents and no folders) now opens straight away
instead of showing the locked screen, on first use and after auto-lock.
The catalog records a plaintext empty flag next to its ciphertext so this
can be decided without the auth-bound key; nothing is decrypted on the
flag's word, and catalogs from before the flag stay locked until saved.

Showing the empty locker isn't an unlock: saving the first document or
creating the first folder asks for fingerprint / PIN at that moment, and
transfers, imports, exports and settings still ask first as before. Lock
now is hidden and the auto-lock notification skipped while there's
nothing to lock.
@mattintech
mattintech merged commit b24d4c7 into develop Nov 2, 2026
1 check passed
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