Skip to content

Commit

Permalink
Fix Lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Aug 21, 2023
1 parent 3da8453 commit 116351f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package="com.ivy.wallet">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ class NotificationService(
val notificationManager =
context.getSystemService(Context.NOTIFICATION_SERVICE) as? NotificationManager
?: return
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
// Register the channel with the system
val channel = (notification as IvyNotification).ivyChannel.create(context)
notificationManager.createNotificationChannel(channel)
}
// Register the channel with the system
val channel = (notification as IvyNotification).ivyChannel.create(context)

notificationManager.createNotificationChannel(channel)
notificationManager.notify(notificationId, notification.build())
}

Expand Down

0 comments on commit 116351f

Please sign in to comment.