Merge pull request #620 from lbryio/release-0.8.0
app head: updates for next release
This commit is contained in:
commit
8fe078cc29
2 changed files with 9 additions and 23 deletions
2
app
2
app
|
@ -1 +1 @@
|
||||||
Subproject commit da9276ea75e789e78cfe09ef40742fa6f566e088
|
Subproject commit b194bd9276048020c56728c911e7d6299562f6be
|
|
@ -18,6 +18,7 @@ import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
||||||
import com.facebook.react.bridge.ReactMethod;
|
import com.facebook.react.bridge.ReactMethod;
|
||||||
import com.facebook.react.bridge.WritableArray;
|
import com.facebook.react.bridge.WritableArray;
|
||||||
import com.facebook.react.bridge.WritableMap;
|
import com.facebook.react.bridge.WritableMap;
|
||||||
|
import com.facebook.react.modules.core.DeviceEventManagerModule;
|
||||||
|
|
||||||
import io.lbry.browser.MainActivity;
|
import io.lbry.browser.MainActivity;
|
||||||
import io.lbry.browser.Utils;
|
import io.lbry.browser.Utils;
|
||||||
|
@ -65,28 +66,6 @@ public class GalleryModule extends ReactContextBaseJavaModule {
|
||||||
promise.resolve(null);
|
promise.resolve(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
@ReactMethod
|
|
||||||
public void copyImage(String sourcePath, String destinationPath, Promise promise) {
|
|
||||||
try {
|
|
||||||
File source = new File(sourcePath);
|
|
||||||
File destination = new File(destinationPath);
|
|
||||||
if (source.exists()) {
|
|
||||||
FileChannel src = new FileInputStream(source).getChannel();
|
|
||||||
FileChannel dst = new FileOutputStream(destination).getChannel();
|
|
||||||
dst.transferFrom(src, 0, src.size());
|
|
||||||
src.close();
|
|
||||||
dst.close();
|
|
||||||
|
|
||||||
promise.resolve(true);
|
|
||||||
} else {
|
|
||||||
promise.reject("The source image could not be found. Please try again.");
|
|
||||||
}
|
|
||||||
} catch (Exception ex) {
|
|
||||||
promise.reject("The image could not be saved. Please try again.");
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
@ReactMethod
|
@ReactMethod
|
||||||
public void getUploadsPath(Promise promise) {
|
public void getUploadsPath(Promise promise) {
|
||||||
if (context != null) {
|
if (context != null) {
|
||||||
|
@ -247,6 +226,13 @@ public class GalleryModule extends ReactContextBaseJavaModule {
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void onPostExecute(Void result) {
|
||||||
|
if (GalleryModule.this.context != null) {
|
||||||
|
((ReactApplicationContext) GalleryModule.this.context).getJSModule(
|
||||||
|
DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit("onGalleryThumbnailsChecked", null);
|
||||||
|
}
|
||||||
|
}
|
||||||
}).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
}).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue