diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/StopwatchFragment.kt b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/StopwatchFragment.kt index 08db8211..fd44e999 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/StopwatchFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/StopwatchFragment.kt @@ -100,6 +100,9 @@ class StopwatchFragment : Fragment() { override fun onDestroy() { super.onDestroy() + if (isRunning) { + context?.toast(R.string.stopwatch_stopped) + } isRunning = false updateHandler.removeCallbacks(updateRunnable) } diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt index f14f1836..6153b535 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt @@ -69,6 +69,9 @@ class TimerFragment : Fragment() { override fun onDestroy() { super.onDestroy() + if (isRunning) { + context?.toast(R.string.timer_stopped) + } isRunning = false updateHandler.removeCallbacks(updateRunnable) } diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index e2b6bc91..49d1407c 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -7,6 +7,8 @@ No days selected Alarm Lap + Stopwatch has been stopped + Timer has been stopped Relógio diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml index 734a5d2e..2379aa36 100644 --- a/app/src/main/res/values-sk/strings.xml +++ b/app/src/main/res/values-sk/strings.xml @@ -7,6 +7,8 @@ Neboli označené žiadne dni Budík Okruh + Stopky boli zastavené + Časovač bol zastavený Okno s časom diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 250fe2fc..df40e31c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -7,6 +7,8 @@ No days selected Alarm Lap + Stopwatch has been stopped + Timer has been stopped Clock tab