blixt-wallet
blixt-wallet copied to clipboard
Use FileUtils.copy
Untested!
This assumes we have compileSdkVersion 29 or higher. This copy method might be faster, or if noting else, less own code to maintain.
I found this since the code scanner warned of potential memory leak (unclosed file descriptors) if copying fails. If using FileUtils won't work, we should add a finally block that ensures the Streams get closed and garbage collected.
Thanks for the pull request, I'll get back to you about this once I've tested it.