Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyma committed Jan 26, 2022
2 parents 83e2e77 + 194fb92 commit 68b5d3c
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,16 @@ class BubbleBuilder(
}

private fun getPendingIntent(): PendingIntent {
val flags = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
} else {
PendingIntent.FLAG_UPDATE_CURRENT
}
return PendingIntent.getActivity(
context,
0,
Intent(context, BubbleActivity::class.java)
.setAction(Intent.ACTION_VIEW),
PendingIntent.FLAG_UPDATE_CURRENT
Intent(context, BubbleActivity::class.java).setAction(Intent.ACTION_VIEW),
flags
)
}

Expand Down

0 comments on commit 68b5d3c

Please sign in to comment.