Skip to content

Commit

Permalink
Fix code analytics
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <alper_ozturk@proton.me>
  • Loading branch information
alperozturk96 committed May 21, 2024
1 parent 7e7c7e6 commit 959cece
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ class DashboardWidgetUpdater @Inject constructor(
putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, idArray)
}


return PendingIntent.getBroadcast(
context,
appWidgetId,
Expand All @@ -142,9 +141,12 @@ class DashboardWidgetUpdater @Inject constructor(
)
}

@Suppress("MagicNumber")
private val pendingIntentFlags: Int = when {
Build.VERSION.SDK_INT >= 34 -> {
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT
PendingIntent.FLAG_UPDATE_CURRENT or
PendingIntent.FLAG_MUTABLE or
PendingIntent.FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT
}

else -> {
Expand Down

0 comments on commit 959cece

Please sign in to comment.