rename OpenAppSettingsDialog as OpenDeviceSettingsDialog

This commit is contained in:
fatih ergin 2023-07-25 00:56:06 +03:00
parent b64d5374f6
commit b9bbf8043c
2 changed files with 3 additions and 6 deletions

View File

@ -63,7 +63,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.github.fatihergin:Simple-Commons:4ef43732e6' // TODO: replace it with SimpleMobileTools after merging the Commons PR implementation 'com.github.fatihergin:Simple-Commons:db3c379ac2' // TODO: replace it with SimpleMobileTools after merging the Commons PR
implementation 'androidx.documentfile:documentfile:1.0.1' implementation 'androidx.documentfile:documentfile:1.0.1'
implementation "androidx.exifinterface:exifinterface:1.3.5" implementation "androidx.exifinterface:exifinterface:1.3.5"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1" implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1"

View File

@ -7,10 +7,7 @@ import com.simplemobiletools.camera.R
import com.simplemobiletools.camera.extensions.checkLocationPermission import com.simplemobiletools.camera.extensions.checkLocationPermission
import com.simplemobiletools.camera.extensions.config import com.simplemobiletools.camera.extensions.config
import com.simplemobiletools.camera.models.CaptureMode import com.simplemobiletools.camera.models.CaptureMode
import com.simplemobiletools.commons.dialogs.FeatureLockedDialog import com.simplemobiletools.commons.dialogs.*
import com.simplemobiletools.commons.dialogs.FilePickerDialog
import com.simplemobiletools.commons.dialogs.OpenAppSettingsDialog
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
import com.simplemobiletools.commons.extensions.* import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.* import com.simplemobiletools.commons.helpers.*
import com.simplemobiletools.commons.models.FAQItem import com.simplemobiletools.commons.models.FAQItem
@ -179,7 +176,7 @@ class SettingsActivity : SimpleActivity() {
if (checkLocationPermission()) { if (checkLocationPermission()) {
updateSavePhotoVideoLocationConfig(true) updateSavePhotoVideoLocationConfig(true)
} else { } else {
OpenAppSettingsDialog(activity = this@SettingsActivity, message = getString(R.string.allow_location_permission)) OpenDeviceSettingsDialog(activity = this@SettingsActivity, message = getString(R.string.allow_location_permission))
} }
} }
} }