Skip to content

Commit

Permalink
fix: 5681 - startActivityAndCollapse + android 14
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurtanuki committed Oct 9, 2024
1 parent 449ae5a commit 784826c
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,18 @@ class AppMainTile : TileService() {
flags += Intent.FLAG_ACTIVITY_NEW_TASK
}

startActivityAndCollapse(intent)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
startActivityAndCollapse(
PendingIntent.getActivity(
appContext,
0,
intent,
PendingIntent.FLAG_IMMUTABLE
)
)
} else {
startActivityAndCollapse(intent)
}
}

}

0 comments on commit 784826c

Please sign in to comment.