Skip to content

Commit fe420b1

Browse files
authored
code style
1 parent b156d05 commit fe420b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ public void takeSnapshot(int tag, ReadableMap options, Promise promise) {
6464
Integer width = options.hasKey("width") ? (int)(displayMetrics.density * options.getDouble("width")) : null;
6565
Integer height = options.hasKey("height") ? (int)(displayMetrics.density * options.getDouble("height")) : null;
6666
String result = options.hasKey("result") ? options.getString("result") : "file";
67-
Boolean snapshotContentContainer = options.hasKey("snapshotContentContainer") ? options.getBoolean("snapshotContentContainer"):false;
67+
Boolean snapshotContentContainer = options.hasKey("snapshotContentContainer") ? options.getBoolean("snapshotContentContainer") : false;
6868
try {
6969
String name = options.hasKey("filename") ? options.getString("filename") : null;
7070
File tmpFile = "file".equals(result) ? createTempFile(getReactApplicationContext(), format, name) : null;
7171
UIManagerModule uiManager = this.reactContext.getNativeModule(UIManagerModule.class);
72-
uiManager.addUIBlock(new ViewShot(tag, format, compressFormat, quality, width, height, tmpFile, result,snapshotContentContainer,promise));
72+
uiManager.addUIBlock(new ViewShot(tag, format, compressFormat, quality, width, height, tmpFile, result, snapshotContentContainer, promise));
7373
}
7474
catch (Exception e) {
7575
promise.reject(ViewShot.ERROR_UNABLE_TO_SNAPSHOT, "Failed to snapshot view tag "+tag);

0 commit comments

Comments
 (0)