Created
September 10, 2018 06:39
-
-
Save DanishAmjad12/1e4b9357dc13b49e950ec3db2956c958 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Notification notification = new NotificationCompat.Builder(this); | |
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { | |
notification.setSmallIcon(R.drawable.icon_transperent); | |
notification.setColor(getResources().getColor(R.color.notification_color)); | |
} else { | |
notification.setSmallIcon(R.drawable.icon); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment