Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] [Android] Labels don't get saved unless app is closed with back button #8979

Open
jayb-g opened this issue Mar 28, 2024 · 3 comments

Comments

@jayb-g
Copy link

jayb-g commented Mar 28, 2024

Current Behavior: If labels are added to certain transactions and app is closed by opening app drawer(swipe up) then labels don't get saved which be seen when you open the app again. It does get saved properly if exited by back button and clicking on yes in the app prompt to close electrum.

Expected behavior: Labels should get saved as and when created regardless of if/how the app is closed.

Steps to reproduce:

  1. Open electrum and label any transaction, exit the app by swipe up from app drawer.
    Open electrum again to see that it doesn't get saved.
  2. Do the same again but close the app by clicking back button and click yes when prompted by app. Now when electrum is opened again, it shows the newly created label.

OS: AOSP 14 (Latest)
Electrum version: 4.5.4.0

@jayb-g jayb-g changed the title [Android] Labels don't get saved unless app is closed with back button [Bug Report] [Android] Labels don't get saved unless app is closed with back button Mar 28, 2024
@pony-montana
Copy link

Sounds very similar to this #8389 maybe could be useful.

@jayb-g
Copy link
Author

jayb-g commented Mar 29, 2024

@pony-montana yes indeed

@SomberNight
Copy link
Member

This would be fixed by #8736.
There is some (implied) discussion there why it has not been merged yet: it is potentially expensive to rewrite the whole wallet file as part of saving (would need partial writes).

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

No branches or pull requests

3 participants