mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	Change service icons for now
- Use place holders while the legal discussion is happening
This commit is contained in:
		| @@ -106,7 +106,7 @@ public class MainActivity extends AppCompatActivity implements HistoryListener { | ||||
|         final DrawerLayout drawer = findViewById(R.id.drawer_layout); | ||||
|         final NavigationView drawerItems = findViewById(R.id.navigation); | ||||
|  | ||||
|         drawerItems.setItemIconTintList(null); | ||||
|         //drawerItems.setItemIconTintList(null); // Set null to use the original icon | ||||
|         drawerItems.getMenu().getItem(ServiceHelper.getSelectedServiceId(this)).setChecked(true); | ||||
|  | ||||
|         if (!BuildConfig.BUILD_TYPE.equals("release")) { | ||||
|   | ||||
| @@ -18,9 +18,9 @@ public class ServiceHelper { | ||||
|     public static int getIcon(int serviceId) { | ||||
|         switch (serviceId) { | ||||
|             case 0: | ||||
|                 return R.drawable.youtube; | ||||
|                 return R.drawable.place_holder_youtube; | ||||
|             case 1: | ||||
|                 return R.drawable.soundcloud; | ||||
|                 return R.drawable.place_holder_circle; | ||||
|             default: | ||||
|                 return R.drawable.service; | ||||
|         } | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-nodpi/place_holder_circle.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								app/src/main/res/drawable-nodpi/place_holder_circle.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 5.6 KiB | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-nodpi/place_holder_youtube.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								app/src/main/res/drawable-nodpi/place_holder_youtube.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.9 KiB | 
| @@ -4,11 +4,11 @@ | ||||
|         android:id="@+id/menu_services_group"> | ||||
|         <item | ||||
|             android:id="@+id/menu_service_youtube" | ||||
|             android:icon="@drawable/youtube" | ||||
|             android:icon="@drawable/place_holder_youtube" | ||||
|             android:title="@string/youtube"/> | ||||
|         <item | ||||
|             android:id="@+id/menu_service_soundcloud" | ||||
|             android:icon="@drawable/soundcloud" | ||||
|             android:icon="@drawable/place_holder_circle" | ||||
|             android:title="@string/soundcloud"/> | ||||
|     </group> | ||||
| </menu> | ||||
		Reference in New Issue
	
	Block a user
	 Mauricio Colli
					Mauricio Colli