Kunzisoft / KeePassDX

Lightweight vault and password manager for Android, KeePassDX allows editing encrypted data in a single file in KeePass format and fill in the forms in a secure way.
https://www.keepassdx.com/
GNU General Public License v3.0
4.71k stars 276 forks source link

Sort by "Access" doesn't work properly #1911

Open An-anonymous-coder opened 1 month ago

An-anonymous-coder commented 1 month ago

Describe the bug

When the database is sorted by "Access", it only sorts by modification. It should instead sort by when each item was viewed or autofilled.

To Reproduce

Steps to reproduce the behavior:

  1. Open a database
  2. Open the sort menu on the top right
  3. Select "Access"
  4. Click "OK"
  5. View an item

The position of the item does not change.

Expected behavior

The positions of items should be sorted relative to when it was viewed or autofilled.

KeePassDX:

Android:

Additional context

I will create a demonstration video if this cannot be reproduced.

J-Jamet commented 1 week ago

At present, the code ignores the save of an access, as this would cause a change in the entry data and therefore, by extension, cause an automatic database save. I'll try to find a solution to update a RAM entry without triggering the entire database save, but it requires using a new architecture.