capacitor-community-multilens-camerapreview 7.1.8 → 7.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -211,7 +211,15 @@ class Preview extends RelativeLayout implements SurfaceHolder.Callback, TextureV
211
211
  }
212
212
 
213
213
  public Surface getSurface() {
214
- return null;
214
+ if (!enableOpacity) {
215
+ return mHolder.getSurface();
216
+ } else {
217
+ if (mSurfaceTexture != null) {
218
+ return new Surface(mSurfaceTexture);
219
+ } else {
220
+ return null;
221
+ }
222
+ }
215
223
  }
216
224
 
217
225
  @Override
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-community-multilens-camerapreview",
3
- "version": "7.1.8",
3
+ "version": "7.1.9",
4
4
  "description": "fork of capacitor community camera preview with support for switchting lenses",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",