Created
December 5, 2021 19:40
-
-
Save SubhrajyotiSen/c4f79c71e82e209dc05689aa7b7e6899 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Nullable | |
public NotificationChannelCompat getNotificationChannelCompat(@NonNull String channelId) { | |
if (Build.VERSION.SDK_INT >= 26) { | |
NotificationChannel channel = getNotificationChannel(channelId); | |
if (channel != null) { | |
return new NotificationChannelCompat(channel); | |
} | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment