Update target SDK to 34.

This commit is contained in:
Cody Henthorne
2024-07-30 14:08:23 -04:00
committed by mtang-signal
parent 6424c6bc99
commit dc7208922c
10 changed files with 38 additions and 13 deletions

View File

@@ -23,9 +23,13 @@ object PendingIntentFlags {
return mutable() or PendingIntent.FLAG_CANCEL_CURRENT
}
/**
* Flag indicating that this [PendingIntent] can be used only once. After [PendingIntent.send] is called on it,
* it will be automatically canceled for you and any future attempt to send through it will fail.
*/
@JvmStatic
fun oneShot(): Int {
return mutable() or PendingIntent.FLAG_ONE_SHOT
return immutable() or PendingIntent.FLAG_ONE_SHOT
}
/**