adding a setting for changing the date and time formats

This commit is contained in:
tibbi
2020-04-01 22:36:02 +02:00
parent 4a9186304b
commit 7cbf7a7d3f
2 changed files with 29 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package com.simplemobiletools.voicerecorder.activities
import android.os.Bundle
import com.simplemobiletools.commons.dialogs.ChangeDateTimeFormatDialog
import com.simplemobiletools.commons.dialogs.FilePickerDialog
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.isQPlus
@ -22,6 +23,7 @@ class SettingsActivity : SimpleActivity() {
setupPurchaseThankYou()
setupCustomizeColors()
setupUseEnglish()
setupChangeDateTimeFormat()
setupHideNotification()
setupSaveRecordingsFolder()
updateTextColors(settings_scrollview)
@ -50,6 +52,12 @@ class SettingsActivity : SimpleActivity() {
}
}
private fun setupChangeDateTimeFormat() {
settings_change_date_time_format_holder.setOnClickListener {
ChangeDateTimeFormatDialog(this) {}
}
}
private fun setupHideNotification() {
settings_hide_notification.isChecked = config.hideNotification
settings_hide_notification_holder.setOnClickListener {