-
Notifications
You must be signed in to change notification settings - Fork 87
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
Editing new file will reuse the file name of previously opened file #228
Comments
Unable to reproduce. Tested on three different devices. |
Interesting. I Get the bug if I open the file in step 1 in one of the following ways:
I can't reproduce the bug if I open the file in step 1 via Editor's "Open file" menu. So the way the first file is opened seems to matter. I'm running f-droid's latest editor package on Samsung android 11. |
See the README. File managers and other apps use a |
So it seems the bug lies in this mechanism you devised to overcome android's limitations in saving files. It is a bit too over-zealous in the scenario I described, wrongly re-using the old filename and overwriting the old file when the user saves. Once the user chooses to edit a new file, the past shouldn't matter and editor should stick to the default filename for new files. (BTW I never had any problems with saving files, but maybe I was lucky with my android version) |
This bug seems fixed in 1.96 thanks!!! I've now noticed another couple of bugs while using the Save as... feature to overwrite an existing file. Steps:
Expected: get a warning message like "File FOO already exists. Do you want to overwrite it?" Actual: the message says "This file has changed. Do you want to overwrite it?" But there's more. If you now choose to overwrite: the new file name will appear in the upper left corner, but the file is still saved to disk under the old filename, while the file chosen to be overwritten is left untouched. This keeps happening every time you hit the Save icon. Expected: the original file should be left untouched, the chosen file should be overwritten with the current buffer content, and the new filename should appear permanently in the upper left corner (until the next Save as... action). |
Steps to reproduce:
Expected result: you should be editing the new Untitled.txt file.
Actual result: as soon as you enter edit mode, the current filename reverts to the name of the file you opened in step 1. above.
WARNING: potential data loss. If you don't realise this and click on the Save icon, the old file will be silently overwritten.
Suggestions:
The text was updated successfully, but these errors were encountered: