Browse Source

Make all ViewShot fields final.

Jeremy Green 6 years ago
parent
commit
4c9b57e1c3
1 changed files with 12 additions and 12 deletions
  1. 12
    12
      android/src/main/java/fr/greweb/reactnativeviewshot/ViewShot.java

+ 12
- 12
android/src/main/java/fr/greweb/reactnativeviewshot/ViewShot.java View File

@@ -33,18 +33,18 @@ public class ViewShot implements UIBlock {
33 33
 
34 34
     static final String ERROR_UNABLE_TO_SNAPSHOT = "E_UNABLE_TO_SNAPSHOT";
35 35
 
36
-    private int tag;
37
-    private String extension;
38
-    private Bitmap.CompressFormat format;
39
-    private double quality;
40
-    private Integer width;
41
-    private Integer height;
42
-    private File output;
43
-    private String result;
44
-    private Promise promise;
45
-    private Boolean snapshotContentContainer;
46
-    private  ReactApplicationContext reactContext;
47
-    private Activity currentActivity;
36
+    private final int tag;
37
+    private final String extension;
38
+    private final Bitmap.CompressFormat format;
39
+    private final double quality;
40
+    private final Integer width;
41
+    private final Integer height;
42
+    private final File output;
43
+    private final String result;
44
+    private final Promise promise;
45
+    private final Boolean snapshotContentContainer;
46
+    private final ReactApplicationContext reactContext;
47
+    private final Activity currentActivity;
48 48
 
49 49
     public ViewShot(
50 50
             int tag,