Skip to content

Commit

Permalink
Fix Android delay integer overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gdelataillade committed Jan 22, 2024
1 parent c99ff5b commit 82a91ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class AlarmPlugin: FlutterPlugin, MethodCallHandler {
}

fun handleDelayedAlarm(context: Context, intent: Intent, delayInSeconds: Int, id: Int) {
val triggerTime = System.currentTimeMillis() + delayInSeconds * 1000
val triggerTime = System.currentTimeMillis() + delayInSeconds * 1000L
val pendingIntent = PendingIntent.getBroadcast(
context,
id,
Expand Down

0 comments on commit 82a91ff

Please sign in to comment.