From babb61728781e2ad998f9d072dda3dcff8d03e2d Mon Sep 17 00:00:00 2001 From: Osei Fortune Date: Mon, 9 May 2016 10:22:00 -0400 Subject: [PATCH] Update camera.android.ts --- camera/camera.android.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/camera/camera.android.ts b/camera/camera.android.ts index 2adc6a309..a7c1a882c 100644 --- a/camera/camera.android.ts +++ b/camera/camera.android.ts @@ -24,8 +24,6 @@ export var takePicture = function (options?): Promise { var dateStamp = createDateTimeStamp(); var fileSystem: typeof fileSystemModule = require("file-system"); - - if (saveToGallery) { var picturePath = android.os.Environment.getExternalStoragePublicDirectory( android.os.Environment.DIRECTORY_PICTURES).getAbsolutePath() + "/" + "cameraPicture_" + dateStamp + ".jpg"; @@ -33,7 +31,7 @@ export var takePicture = function (options?): Promise { var tempPictureUri = android.net.Uri.fromFile(nativeFile); takePictureIntent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, tempPictureUri); } else { - picturePath = utils.ad.getApplicationContext().getExternalFilesDir(null).getAbsolutePath() + "/" + "cameraPicture_" + dateStamp + ".jpg"; + var picturePath = utils.ad.getApplicationContext().getExternalFilesDir(null).getAbsolutePath() + "/" + "cameraPicture_" + dateStamp + ".jpg"; var nativeFile = new java.io.File(picturePath); var tempPictureUri = android.net.Uri.fromFile(nativeFile); takePictureIntent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, tempPictureUri);