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.32k stars 261 forks source link

When editing a database entry, the application automatically returns to the unlock interface #936

Closed Vstory closed 3 years ago

Vstory commented 3 years ago

Describe the bug When editing a database entry, it automatically returns to the database unlocking interface.

The problem does not appear every time.

To Reproduce Steps to reproduce the behavior:

  1. Unlock the database, search for any content, click any search result, and enter the entry preview interface.
  2. Edit the content of the entry, such as changing the password and changing the remarks.
  3. For example, in the pop-up window for generating a password, after clicking Generate Password and clicking Accept the password, the problem may occur.
  4. This problem does not occur every time, and I cannot confirm the cause of the trigger.
  5. When the problem was triggered, I grabbed the logcat log once.
  6. attachments logcat.txt.zip

KeePass Database

KeePassDX:

Android:

Additional context The database contains many attachments and custom icons.

tutyamxx commented 3 years ago

I cam confirm that it happens to me as well 🙈

J-Jamet commented 3 years ago

I think this problem is related to themes. But it's to be confirmed, some systems do not correctly handle theme variables. https://github.com/Kunzisoft/KeePassDX/issues/935

Do you have any themes other than the basic ones (forest) activated? To confirm this theory.

tutyamxx commented 3 years ago

If it helps, yea, I think is related to themes because on the default theme (dark or normal) works fine but after I switched to other themes it started doing it.

J-Jamet commented 3 years ago

I have created a package for another issue, if you can download it and tell me if the bug is present or not that would be a great help.

https://github.com/Kunzisoft/KeePassDX/issues/933#issuecomment-808464779

Vstory commented 3 years ago

Do you have any themes other than the basic ones (forest) activated? To confirm this theory.

I am not using the default theme. The theme I use: Classic

Vstory commented 3 years ago

I have created a package for another issue, if you can download it and tell me if the bug is present or not that would be a great help.

#933 (comment)

I know, I will test.

Vstory commented 3 years ago

After a simple test, the problem did not appear. Test application: KeePassDX_2.9.15_beta01.apk. KeePassDX_2.9.15_beta01_GoBuild.apk is not tested.

Vstory commented 3 years ago

@J-Jamet In this version, the problem still exists.Does this version contain repair code?

Screenshot_2021-03-30-06-32-33-121_com miui securitycenter

Vstory commented 3 years ago

@J-Jamet This problem is not a bug, it is a feature.

936 #951

It is related to some options of the magic keyboard.

Autofill -> Magic Keyboard -> Entry -> Entry Selection

When the item selection option is turned on and a timeout is set to clear the magic keyboard at the same time, the problem will appear when browsing items.

This option appears in the auto-fill setting. When the user enters KeePassDX without auto-fill or magic keyboard, the entry selection should be ignored to avoid this problem.

There is no language switch option in the app, I took a screenshot directly. The figure shows the magic keyboard setting interface.

image