Skip to content

Android: Fix a bug where new file wouldn't be created for cases where the config path is a content:// Uri.

Sharaf Zaman requested to merge work/sh-zam/fix-qsavefile-content-uri into master

One can only save to content Uri through direct write, so this is important. In a perfect world, this problem would be fixed within QSaveFile itself, but due to lack of temporary file support on Android, this needs some thinking before coming up with a solution. So, I presented this workaround based on the code from: https://invent.kde.org/qt/qt/qtbase/-/blob/dev/src/corelib/io/qsavefile.cpp#L216-231

Merge request reports