diff --git a/app/src/main/java/com/mensinator/app/settings/SettingsViewModel.kt b/app/src/main/java/com/mensinator/app/settings/SettingsViewModel.kt index 53b2751..abb18cb 100644 --- a/app/src/main/java/com/mensinator/app/settings/SettingsViewModel.kt +++ b/app/src/main/java/com/mensinator/app/settings/SettingsViewModel.kt @@ -136,7 +136,9 @@ class SettingsViewModel( } fun showColorPicker(colorSetting: ColorSetting?) { - _viewState.update { it.copy(openColorPickerForSetting = colorSetting) } + _viewState.update { + it.copy(openColorPickerForSetting = colorSetting) + } } fun showIntPicker(intSetting: IntSetting?) { @@ -155,7 +157,6 @@ class SettingsViewModel( _viewState.update { it.copy(showExportDialog = show) } } - fun handleImport(importPath: String) { try { exportImport.importDatabase(importPath) @@ -239,4 +240,4 @@ enum class BooleanSetting(val stringResId: Int, val settingDbKey: String) { LUTEAL_PHASE_CALCULATION(R.string.luteal_phase_calculation, "luteal_period_calculation"), SHOW_CYCLE_NUMBERS(R.string.cycle_numbers_show, "cycle_numbers_show"), PREVENT_SCREENSHOTS(R.string.screen_protection, "screen_protection"), -} +} \ No newline at end of file