-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check last modified date of file, and only reopen if the new intent h…
…as a file with newer modification time (will revert) Unfortunately this doesn't work, and I'm going to revert, because: - the only time when we do have a previous file (noPreviousMindmapLoaded = false) is when we rotate the device - however, when we open a new file, it is always a new activity, so the Mindmap variable is new, and thus noPreviousMindmapLoaded = true. So checking the modification time doesn't do any good What I plan to do next: - store the intent we originally opened - check if the newly opened intent is the same. If so, it's a rotation, then use the old logic - otherwise, just open the new file
- Loading branch information
Benedikt Koeppel
committed
Sep 1, 2022
1 parent
f04c8ab
commit 1e61e07
Showing
2 changed files
with
93 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters