citra_android: fix config is getting overwritten by default (#6408)
This commit is contained in:
parent
7d64c654cc
commit
495e5dadd7
|
@ -233,7 +233,7 @@ public final class SettingsFile {
|
|||
writeSection(writer, section);
|
||||
}
|
||||
inputStream.close();
|
||||
OutputStream outputStream = context.getContentResolver().openOutputStream(ini.getUri());
|
||||
OutputStream outputStream = context.getContentResolver().openOutputStream(ini.getUri(), "wt");
|
||||
writer.store(outputStream);
|
||||
outputStream.flush();
|
||||
outputStream.close();
|
||||
|
|
|
@ -144,7 +144,7 @@ public class DocumentsTree {
|
|||
document.isDirectory = destination.isDirectory();
|
||||
document.loaded = true;
|
||||
InputStream input = context.getContentResolver().openInputStream(sourceNode.uri);
|
||||
OutputStream output = context.getContentResolver().openOutputStream(destination.getUri());
|
||||
OutputStream output = context.getContentResolver().openOutputStream(destination.getUri(), "wt");
|
||||
byte[] buffer = new byte[1024];
|
||||
int len;
|
||||
while ((len = input.read(buffer)) != -1) {
|
||||
|
|
|
@ -273,7 +273,7 @@ public class FileUtil {
|
|||
}
|
||||
if (destination == null) return false;
|
||||
InputStream input = context.getContentResolver().openInputStream(sourceUri);
|
||||
OutputStream output = context.getContentResolver().openOutputStream(destination.getUri());
|
||||
OutputStream output = context.getContentResolver().openOutputStream(destination.getUri(), "wt");
|
||||
byte[] buffer = new byte[1024];
|
||||
int len;
|
||||
while ((len = input.read(buffer)) != -1) {
|
||||
|
|
Reference in New Issue