mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Add another convenience overload for CordovaResourceApi.copyResource
This commit is contained in:
parent
dd6bf568d1
commit
5fb83e7f52
@ -346,6 +346,10 @@ public class CordovaResourceApi {
|
|||||||
copyResource(openForRead(sourceUri), outputStream);
|
copyResource(openForRead(sourceUri), outputStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Added in 3.5.0.
|
||||||
|
public void copyResource(Uri sourceUri, Uri dstUri) throws IOException {
|
||||||
|
copyResource(openForRead(sourceUri), openOutputStream(dstUri));
|
||||||
|
}
|
||||||
|
|
||||||
private void assertBackgroundThread() {
|
private void assertBackgroundThread() {
|
||||||
if (threadCheckingEnabled) {
|
if (threadCheckingEnabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user