Skip to content

Commit

Permalink
UpdateReceiver: delete notification channels if new version is 141 or…
Browse files Browse the repository at this point in the history
… 142
  • Loading branch information
Javinator9889 committed Dec 10, 2020
1 parent a1ca37b commit 048e0e9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -38,7 +38,7 @@ class UpdateReceiver : BroadcastReceiver() {
}
// Here, we need to remove all the notifications channels
// previously created as they have changed
if (BuildConfig.VERSION_CODE == 141 && isAtLeast(AndroidVersion.O)) {
if (BuildConfig.VERSION_CODE in 141..142 && isAtLeast(AndroidVersion.O)) {
val notificationManager =
context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
for (id in setOf(
Expand Down

0 comments on commit 048e0e9

Please sign in to comment.