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);
|
writeSection(writer, section);
|
||||||
}
|
}
|
||||||
inputStream.close();
|
inputStream.close();
|
||||||
OutputStream outputStream = context.getContentResolver().openOutputStream(ini.getUri());
|
OutputStream outputStream = context.getContentResolver().openOutputStream(ini.getUri(), "wt");
|
||||||
writer.store(outputStream);
|
writer.store(outputStream);
|
||||||
outputStream.flush();
|
outputStream.flush();
|
||||||
outputStream.close();
|
outputStream.close();
|
||||||
|
|
|
@ -144,7 +144,7 @@ public class DocumentsTree {
|
||||||
document.isDirectory = destination.isDirectory();
|
document.isDirectory = destination.isDirectory();
|
||||||
document.loaded = true;
|
document.loaded = true;
|
||||||
InputStream input = context.getContentResolver().openInputStream(sourceNode.uri);
|
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];
|
byte[] buffer = new byte[1024];
|
||||||
int len;
|
int len;
|
||||||
while ((len = input.read(buffer)) != -1) {
|
while ((len = input.read(buffer)) != -1) {
|
||||||
|
|
|
@ -273,7 +273,7 @@ public class FileUtil {
|
||||||
}
|
}
|
||||||
if (destination == null) return false;
|
if (destination == null) return false;
|
||||||
InputStream input = context.getContentResolver().openInputStream(sourceUri);
|
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];
|
byte[] buffer = new byte[1024];
|
||||||
int len;
|
int len;
|
||||||
while ((len = input.read(buffer)) != -1) {
|
while ((len = input.read(buffer)) != -1) {
|
||||||
|
|
Reference in New Issue