Merge pull request #637 from lbryio/gallery-thumbnails

app head: gallery thumbnails and publish style tweaks
This commit is contained in:
Akinwale Ariwodola 2019-08-15 19:06:40 +01:00 committed by GitHub
commit 99c8e14773
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

2
app

@ -1 +1 @@
Subproject commit 2e7660250b9c0f7599055d7e1eb3965a78f3db0e
Subproject commit ac10cd26939da7570f437efe5f6717148b41b0c4

View file

@ -221,18 +221,18 @@ public class GalleryModule extends ReactContextBaseJavaModule {
}
}
}
if (file.exists() && file.length() > 0 && GalleryModule.this.context != null) {
WritableMap params = Arguments.createMap();
params.putString("id", id);
((ReactApplicationContext) GalleryModule.this.context).getJSModule(
DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit("onGalleryThumbnailChecked", params);
}
}
}
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);
}