From d22222649644c120032ca337824c5a08415b25bb Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Wed, 11 Mar 2020 17:18:44 +0100 Subject: [PATCH] feat(camera): Unify saveToGallery default value to false (#2557) --- .../java/com/getcapacitor/plugin/camera/CameraSettings.java | 2 +- core/src/core-plugin-definitions.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/android/capacitor/src/main/java/com/getcapacitor/plugin/camera/CameraSettings.java b/android/capacitor/src/main/java/com/getcapacitor/plugin/camera/CameraSettings.java index aaa2019b1..5598ff713 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/plugin/camera/CameraSettings.java +++ b/android/capacitor/src/main/java/com/getcapacitor/plugin/camera/CameraSettings.java @@ -3,7 +3,7 @@ public class CameraSettings { public static final int DEFAULT_QUALITY = 90; - public static final boolean DEFAULT_SAVE_IMAGE_TO_GALLERY = true; + public static final boolean DEFAULT_SAVE_IMAGE_TO_GALLERY = false; public static final boolean DEFAULT_CORRECT_ORIENTATION = true; private CameraResultType resultType = CameraResultType.BASE64; diff --git a/core/src/core-plugin-definitions.ts b/core/src/core-plugin-definitions.ts index a5d635db9..56149ab40 100644 --- a/core/src/core-plugin-definitions.ts +++ b/core/src/core-plugin-definitions.ts @@ -289,7 +289,8 @@ export interface CameraOptions { */ resultType: CameraResultType; /** - * Whether to save the photo to the gallery/photostream + * Whether to save the photo to the gallery/photo stream. + * Default: false */ saveToGallery?: boolean; /**