Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-25 17:57:15 +03:00
parent 1d68916cb7
commit e3357a2ed8
4 changed files with 39 additions and 0 deletions

View file

@ -20,6 +20,21 @@ internal class IntentSettingsManager(val context: Context) : SettingsManager {
open(intent = intent)
}
override fun openAppNotificationSettings() {
val intent = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS).apply {
putExtra(Settings.EXTRA_APP_PACKAGE, context.packageName)
}
} else {
Intent(
Settings.ACTION_APPLICATION_DETAILS_SETTINGS,
Uri.fromParts("package", context.packageName, null),
)
}
open(intent = intent)
}
override fun openBiometricSettings() {
val settingsAction = when {
Build.VERSION.SDK_INT >= Build.VERSION_CODES.R -> Settings.ACTION_BIOMETRIC_ENROLL