mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-03-03 19:09:07 +01:00
Minor code improvement
This commit is contained in:
parent
c8bba75c92
commit
a29eab5c18
@ -529,11 +529,11 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
SelectEventTypesDialog(this, config.displayEventTypes) {
|
||||
if (config.displayEventTypes != it) {
|
||||
config.displayEventTypes = it
|
||||
}
|
||||
|
||||
refreshViewPager()
|
||||
setupQuickFilter()
|
||||
updateWidgets()
|
||||
refreshViewPager()
|
||||
setupQuickFilter()
|
||||
updateWidgets()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -339,9 +339,7 @@ class SettingsActivity : SimpleActivity() {
|
||||
|
||||
private fun showQuickFilterPicker() {
|
||||
SelectEventTypesDialog(this, config.quickFilterEventTypes) {
|
||||
if (config.quickFilterEventTypes != it) {
|
||||
config.quickFilterEventTypes = it
|
||||
}
|
||||
config.quickFilterEventTypes = it
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,7 @@ class ManageAutomaticBackupsDialog(private val activity: SimpleActivity, onSucce
|
||||
val filename = config.autoBackupFilename.ifEmpty {
|
||||
"${activity.getString(R.string.events)}_%Y%M%D_%h%m%s"
|
||||
}
|
||||
|
||||
backup_events_filename.setText(filename)
|
||||
backup_events_filename_hint.setEndIconOnClickListener {
|
||||
DateTimePatternInfoDialog(activity)
|
||||
|
Loading…
x
Reference in New Issue
Block a user