Skip to content

Commit 029d39d

Browse files
committed
add FLAG_IMMUTABLE flag to BatteryLevelService.PendingIntent
1 parent 7e1e1f1 commit 029d39d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/src/main/java/ie/otormaigh/lazyotp/service/BatteryLevelService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package ie.otormaigh.lazyotp.service
33
import android.app.NotificationChannel
44
import android.app.NotificationManager
55
import android.app.PendingIntent
6+
import android.app.PendingIntent.FLAG_IMMUTABLE
67
import android.app.Service
78
import android.content.BroadcastReceiver
89
import android.content.Context
@@ -41,7 +42,7 @@ class BatteryLevelService : Service() {
4142

4243
val pendingIntent = PendingIntent.getActivity(
4344
this, 0,
44-
notificationIntent, 0
45+
notificationIntent, FLAG_IMMUTABLE
4546
)
4647

4748
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {

buildSrc/src/main/java/ie/otormaigh/lazyotp/plugin/SemVer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import ie.otormaigh.lazyotp.plugin.toolbox.Git
1111
object SemVer {
1212
private const val major = 0
1313
private const val minor = 4
14-
private const val patch = 0
14+
private const val patch = 1
1515

1616
@JvmStatic
1717
val name: String

0 commit comments

Comments
 (0)