Browse Source

fix export file issue (#12)

V1.1.0-btc-release V1.1.0BTC-Only
JunZhang 4 years ago
committed by GitHub
parent
commit
9cf01bd139
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/src/main/java/com/cobo/cold/update/utils/FileUtils.java

3
app/src/main/java/com/cobo/cold/update/utils/FileUtils.java

@ -52,6 +52,9 @@ public class FileUtils {
public static boolean writeString(@NonNull File file, String content) {
try(FileOutputStream fos = new FileOutputStream(file)) {
fos.write(content.getBytes());
fos.getFD().sync();
fos.flush();
fos.close();
return true;
} catch (Exception e) {
e.printStackTrace();

Loading…
Cancel
Save