diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 88d28b88..68e32a49 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -28,6 +28,11 @@ + + + + + { + Intent(this, MainActivity::class.java).apply { + putExtra(OPEN_TAB, TAB_ALARM) + startActivity(this) + } + } + else -> startActivity(Intent(this, MainActivity::class.java)) + } finish() } } diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/clock/helpers/Constants.kt index 10bbf7b4..06fbc543 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/helpers/Constants.kt @@ -26,6 +26,9 @@ const val DEFAULT_MAX_TIMER_REMINDER_SECS = 60 const val OPEN_APP_INTENT_ID = 9998 const val TIMER_NOTIF_ID = 9999 +const val OPEN_TAB = "open_tab" +const val TAB_ALARM = 1 + const val SORT_BY_LAP = 1 const val SORT_BY_LAP_TIME = 2 const val SORT_BY_TOTAL_TIME = 4