mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Set notifications icon
This commit is contained in:
		@@ -72,7 +72,7 @@ public class NotificationsService extends Service {
 | 
			
		||||
        Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID)
 | 
			
		||||
                .setContentTitle("Comunic")
 | 
			
		||||
                .setContentText(getText(R.string.independent_push_notification_notification_text))
 | 
			
		||||
                .setSmallIcon(R.drawable.splash_icon)
 | 
			
		||||
                .setSmallIcon(R.drawable.ic_notifications)
 | 
			
		||||
                .setContentIntent(pendingIntent)
 | 
			
		||||
                .build();
 | 
			
		||||
        startForeground(1, notification);
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,17 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    android:width="24dp"
 | 
			
		||||
    android:height="24dp"
 | 
			
		||||
    android:viewportWidth="24"
 | 
			
		||||
    android:viewportHeight="24"
 | 
			
		||||
    android:tint="#FFFFFF">
 | 
			
		||||
  <group android:scaleX="0.13083024"
 | 
			
		||||
      android:scaleY="0.13083024"
 | 
			
		||||
      android:translateX="5.8509784"
 | 
			
		||||
      android:translateY="0.96">
 | 
			
		||||
    <group android:translateY="133.60825">
 | 
			
		||||
      <path android:pathData="M73.765625,-33.171875L87.265625,-33.171875Q85.71875,-18.53125,76.328125,-8.765625Q66.9375,1,48.578125,1Q30.78125,1,19.890625,-11.859375Q9,-24.734375,9,-46.046875L9,-57.109375Q9,-78.78125,20,-91.890625Q31.015625,-105,49.875,-105Q67.125,-105,76.421875,-95.390625Q85.734375,-85.78125,87.265625,-70.59375L73.765625,-70.59375Q72.21875,-81.40625,66.859375,-87.703125Q61.515625,-94,49.640625,-94Q36.0625,-94,29.03125,-83.90625Q22,-73.8125,22,-57.296875L22,-46.84375Q22,-31.546875,28.390625,-20.765625Q34.796875,-10,48.4375,-10Q61.375,-10,66.6875,-16.109375Q72,-22.234375,73.765625,-33.171875Z"
 | 
			
		||||
          android:fillColor="#000000"/>
 | 
			
		||||
    </group>
 | 
			
		||||
  </group>
 | 
			
		||||
</vector>
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								android/app/src/main/res/drawable-hdpi/ic_notifications.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								android/app/src/main/res/drawable-hdpi/ic_notifications.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 390 B  | 
							
								
								
									
										
											BIN
										
									
								
								android/app/src/main/res/drawable-mdpi/ic_notifications.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								android/app/src/main/res/drawable-mdpi/ic_notifications.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 280 B  | 
							
								
								
									
										
											BIN
										
									
								
								android/app/src/main/res/drawable-xhdpi/ic_notifications.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								android/app/src/main/res/drawable-xhdpi/ic_notifications.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 509 B  | 
							
								
								
									
										
											BIN
										
									
								
								android/app/src/main/res/drawable-xxhdpi/ic_notifications.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								android/app/src/main/res/drawable-xxhdpi/ic_notifications.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 750 B  | 
		Reference in New Issue
	
	Block a user