I just figured out that this bug appeares only when opening notes from gmail. Somehow, the file extension is not passed along.
Removing the question for .note extension and just difference by "starts with <?xml" fixes this issue. we could also ask for content.endswith(">/note>/n") to be sure, this file is a notes-file. I can fix this later!
I just figured out that this bug appeares only when opening notes from gmail. Somehow, the file extension is not passed along. endswith( ">/note> /n") to be sure, this file is a notes-file. I can fix this later!
Removing the question for .note extension and just difference by "starts with <?xml" fixes this issue. we could also ask for content.