@@ -3,6 +3,7 @@ package com.simplemobiletools.voicerecorder.activities
3
3
import android.media.MediaRecorder
4
4
import android.os.Bundle
5
5
import com.simplemobiletools.commons.dialogs.ChangeDateTimeFormatDialog
6
+ import com.simplemobiletools.commons.dialogs.FeatureLockedDialog
6
7
import com.simplemobiletools.commons.dialogs.FilePickerDialog
7
8
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
8
9
import com.simplemobiletools.commons.extensions.*
@@ -113,24 +114,29 @@ class SettingsActivity : SimpleActivity() {
113
114
}
114
115
115
116
private fun setupSaveRecordingsFolder () {
117
+ settings_save_recordings_label.text = addLockedLabelIfNeeded(R .string.save_recordings_in)
116
118
settings_save_recordings.text = humanizePath(config.saveRecordingsFolder)
117
119
settings_save_recordings_holder.setOnClickListener {
118
- FilePickerDialog (this , config.saveRecordingsFolder, false , showFAB = true ) {
119
- val path = it
120
- handleSAFDialog(path) { grantedSAF ->
121
- if (! grantedSAF) {
122
- return @handleSAFDialog
123
- }
124
-
125
- handleSAFDialogSdk30(path) { grantedSAF30 ->
126
- if (! grantedSAF30) {
127
- return @handleSAFDialogSdk30
120
+ if (isOrWasThankYouInstalled()) {
121
+ FilePickerDialog (this , config.saveRecordingsFolder, false , showFAB = true ) {
122
+ val path = it
123
+ handleSAFDialog(path) { grantedSAF ->
124
+ if (! grantedSAF) {
125
+ return @handleSAFDialog
128
126
}
129
127
130
- config.saveRecordingsFolder = path
131
- settings_save_recordings.text = humanizePath(config.saveRecordingsFolder)
128
+ handleSAFDialogSdk30(path) { grantedSAF30 ->
129
+ if (! grantedSAF30) {
130
+ return @handleSAFDialogSdk30
131
+ }
132
+
133
+ config.saveRecordingsFolder = path
134
+ settings_save_recordings.text = humanizePath(config.saveRecordingsFolder)
135
+ }
132
136
}
133
137
}
138
+ } else {
139
+ FeatureLockedDialog (this ) { }
134
140
}
135
141
}
136
142
}
0 commit comments