We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52aa1eb commit cd652ffCopy full SHA for cd652ff
app/src/main/java/com/dan/perspective/Settings.kt
@@ -3,6 +3,7 @@ package com.dan.perspective
3
4
import android.app.Activity
5
import android.content.Context
6
+import android.os.Environment
7
import kotlin.reflect.KMutableProperty
8
import kotlin.reflect.KVisibility
9
import kotlin.reflect.full.createType
@@ -14,7 +15,7 @@ Settings: all public var fields will be saved
14
15
class Settings( private val activity: Activity) {
16
17
companion object {
- const val SAVE_FOLDER = "/storage/emulated/0/Pictures/Perspective"
18
+ val SAVE_FOLDER = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).absolutePath + "/Perspective"
19
const val DEFAULT_NAME = "output"
20
21
const val EXT_JPEG = "jpeg"
0 commit comments