fix: minor fixes

This commit is contained in:
Nishant Mishra
2025-12-17 19:39:11 +05:30
parent 24a0b71427
commit 9e63a87a54
2 changed files with 9 additions and 12 deletions

View File

@@ -162,9 +162,6 @@ class SettingsViewModel(
viewModelScope.launch(Dispatchers.IO) { viewModelScope.launch(Dispatchers.IO) {
serviceHelper.startService(TimerAction.ResetTimer) serviceHelper.startService(TimerAction.ResetTimer)
focusFlowCollectionJob?.cancel()
shortBreakFlowCollectionJob?.cancel()
longBreakFlowCollectionJob?.cancel()
statRepository.deleteAllStats() statRepository.deleteAllStats()
_settingsState.update { _settingsState.update {
it.copy(isShowingEraseDataDialog = false) it.copy(isShowingEraseDataDialog = false)

View File

@@ -113,6 +113,6 @@
<string name="secure_aod_desc">Automatically lock your device after a timeout, while keeping the AOD visible</string> <string name="secure_aod_desc">Automatically lock your device after a timeout, while keeping the AOD visible</string>
<string name="timer_reset_message">Timer reset</string> <string name="timer_reset_message">Timer reset</string>
<string name="undo">Undo</string> <string name="undo">Undo</string>
<string name="reset_data">Reset data</string> <string name="reset_data">Reset stats</string>
<string name="reset_data_dialog_text">Are you sure you want to Reset all your data ?</string> <string name="reset_data_dialog_text">Are you sure you want to reset all your stats?</string>
</resources> </resources>