Andrii Chubko de60443c21 Fix editing previously exported notes not working properly
OutputStream for existing files with "content://" path needs to be opened in truncate mode, its description: "If the file already exists and is a regular file and is opened for writing, it will be truncated to length 0."
Streams for files with "/storage" don't seem to be affected by this issue and don't need the truncate mode.

See more at https://developer.android.com/reference/android/os/ParcelFileDescriptor#parseMode(java.lang.String).
2021-08-22 09:10:11 +01:00
..
2016-02-13 21:05:54 +01:00
2021-05-21 11:28:27 +02:00