Browse Source

Explicitly truncate when opening a stream for writing (#20804)

pull/20809/head
Rowe Wilson Frederisk Holme 3 weeks ago
committed by GitHub
parent
commit
907708f997
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Android/Avalonia.Android/Platform/Storage/AndroidStorageItem.cs

2
src/Android/Avalonia.Android/Platform/Storage/AndroidStorageItem.cs

@ -410,7 +410,7 @@ internal sealed class AndroidStorageFile : AndroidStorageItem, IStorageBookmarkF
}
return isOutput
? context.ContentResolver?.OpenOutputStream(uri)
? context.ContentResolver?.OpenOutputStream(uri, "wt")
: context.ContentResolver?.OpenInputStream(uri);
}

Loading…
Cancel
Save