I made some changes to your project unrelated to the EDIT which worked for me from your example. I added a feature where it also saves the edit to the in memory database and the real database also. I also made the database initialization where it does not hang up and locks up like it does in your project. If you want to try it and see what it does for you, be my guest. I have an English keyboard not Arabic like your video shows. If you are still seeing the issue, then hopefully, someone else can help you, because the project I am attaching for you works well for me on my tablet. The EDIT works as it should.