Commit f81fe80e authored by Varun Patil's avatar Varun Patil

Make notifications icon white

parent 1e658043
...@@ -35,7 +35,7 @@ public class MyGcmListenerService extends GcmListenerService { ...@@ -35,7 +35,7 @@ public class MyGcmListenerService extends GcmListenerService {
Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this) NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
//TODO Change the notification icon //TODO Change the notification icon
.setSmallIcon(R.drawable.ic_notifications_black_24dp) .setSmallIcon(R.drawable.ic_notifications_white_24dp)
.setContentTitle("GCM Message") .setContentTitle("GCM Message")
.setContentText(message) .setContentText(message)
.setAutoCancel(true) .setAutoCancel(true)
......
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.89,2 2,2zM18,16v-5c0,-3.07 -1.64,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.63,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2z"/>
</vector>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto">
<item <item
android:id="@+id/action_notifications" android:id="@+id/action_notifications"
android:icon="@drawable/ic_notifications_black_24dp" android:icon="@drawable/ic_notifications_white_24dp"
android:orderInCategory="1" android:orderInCategory="1"
android:title="Notifications" android:title="Notifications"
app:showAsAction="always" /> app:showAsAction="always" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment