1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

use internal FilesDir for temp photo

This commit is contained in:
Kyle Spearrin
2019-06-25 11:54:31 -04:00
parent e33b49e78c
commit 72cbdcbc8d
3 changed files with 3 additions and 3 deletions

View File

@@ -203,7 +203,7 @@ namespace Bit.Droid
else
{
// camera
var file = new Java.IO.File(GetExternalFilesDir("temp"), "camera_photo.jpg");
var file = new Java.IO.File(FilesDir, "temp_camera_photo.jpg");
uri = FileProvider.GetUriForFile(this, "com.x8bit.bitwarden.fileprovider", file);
fileName = $"photo_{DateTime.UtcNow.ToString("yyyyMMddHHmmss")}.jpg";
}