mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03: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 DrawerLayout drawer = findViewById(R.id.drawer_layout); | ||||||
|         final NavigationView drawerItems = findViewById(R.id.navigation); |         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); |         drawerItems.getMenu().getItem(ServiceHelper.getSelectedServiceId(this)).setChecked(true); | ||||||
|  |  | ||||||
|         if (!BuildConfig.BUILD_TYPE.equals("release")) { |         if (!BuildConfig.BUILD_TYPE.equals("release")) { | ||||||
|   | |||||||
| @@ -18,9 +18,9 @@ public class ServiceHelper { | |||||||
|     public static int getIcon(int serviceId) { |     public static int getIcon(int serviceId) { | ||||||
|         switch (serviceId) { |         switch (serviceId) { | ||||||
|             case 0: |             case 0: | ||||||
|                 return R.drawable.youtube; |                 return R.drawable.place_holder_youtube; | ||||||
|             case 1: |             case 1: | ||||||
|                 return R.drawable.soundcloud; |                 return R.drawable.place_holder_circle; | ||||||
|             default: |             default: | ||||||
|                 return R.drawable.service; |                 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"> |         android:id="@+id/menu_services_group"> | ||||||
|         <item |         <item | ||||||
|             android:id="@+id/menu_service_youtube" |             android:id="@+id/menu_service_youtube" | ||||||
|             android:icon="@drawable/youtube" |             android:icon="@drawable/place_holder_youtube" | ||||||
|             android:title="@string/youtube"/> |             android:title="@string/youtube"/> | ||||||
|         <item |         <item | ||||||
|             android:id="@+id/menu_service_soundcloud" |             android:id="@+id/menu_service_soundcloud" | ||||||
|             android:icon="@drawable/soundcloud" |             android:icon="@drawable/place_holder_circle" | ||||||
|             android:title="@string/soundcloud"/> |             android:title="@string/soundcloud"/> | ||||||
|     </group> |     </group> | ||||||
| </menu> | </menu> | ||||||
		Reference in New Issue
	
	Block a user
	 Mauricio Colli
					Mauricio Colli