feat: 'New event' Quick Settings tile #32

Merged
makiolaj merged 3 commits from feat/qs-tile-new-event into release/v2.8.0 2026-06-23 08:18:09 +00:00
Showing only changes of commit 5b99da32b0 - Show all commits

View File

@@ -15,6 +15,9 @@ import kotlin.time.Clock
*/
class NewEventTileService : TileService() {
// The pre-34 branch intentionally uses the deprecated Intent overload: it is
// the only form available below UpsideDownCake, and is reached only there.
@Suppress("DEPRECATION", "StartActivityAndCollapseDeprecated")
override fun onClick() {
super.onClick()
val today = Clock.System.now()
@@ -33,7 +36,6 @@ class NewEventTileService : TileService() {
)
startActivityAndCollapse(pending)
} else {
@Suppress("DEPRECATION")
startActivityAndCollapse(intent)
}
}