From 5047bea7bb279b098856530b0a9c831d29831987 Mon Sep 17 00:00:00 2001 From: Naveen Singh Date: Sat, 11 Oct 2025 01:23:51 +0530 Subject: [PATCH] feat: change default save location to DCIM/Camera This aligns with most camera apps. Refs: https://github.com/FossifyOrg/Camera/issues/18 --- CHANGELOG.md | 3 +++ app/src/main/kotlin/org/fossify/camera/helpers/Config.kt | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 697732a7..d71161d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Changed default photo save location to "DCIM/Camera" ([#18]) ## [1.3.1] - 2025-10-05 ### Changed @@ -58,6 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Initial release +[#18]: https://github.com/FossifyOrg/Camera/issues/18 [#20]: https://github.com/FossifyOrg/Camera/issues/20 [#97]: https://github.com/FossifyOrg/Camera/issues/97 [#157]: https://github.com/FossifyOrg/Camera/issues/157 diff --git a/app/src/main/kotlin/org/fossify/camera/helpers/Config.kt b/app/src/main/kotlin/org/fossify/camera/helpers/Config.kt index 3cd426b6..483b24e3 100644 --- a/app/src/main/kotlin/org/fossify/camera/helpers/Config.kt +++ b/app/src/main/kotlin/org/fossify/camera/helpers/Config.kt @@ -17,11 +17,10 @@ class Config(context: Context) : BaseConfig(context) { get(): String { var path = prefs.getString( SAVE_PHOTOS, - Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).toString() + "${Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)}/Camera" ) if (!File(path).exists() || !File(path).isDirectory) { - path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) - .toString() + path = "${Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)}/Camera" savePhotosFolder = path } return path!!