mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Tweak manga info header backdrop
This commit is contained in:
		| @@ -311,10 +311,14 @@ class MangaInfoHeaderAdapter( | ||||
|  | ||||
|             // backgroundTint attribute doesn't work properly on Android 5 | ||||
|             if (Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP) { | ||||
|                 binding.mangaInfoToggleMoreScrim.background.setColorFilter( | ||||
|                     view.context.getResourceColor(android.R.attr.colorBackground), | ||||
|                     PorterDuff.Mode.SRC_ATOP | ||||
|                 ) | ||||
|                 listOf(binding.backdropOverlay, binding.mangaInfoToggleMoreScrim) | ||||
|                     .forEach { | ||||
|                         @Suppress("DEPRECATION") | ||||
|                         it.background.setColorFilter( | ||||
|                             view.context.getResourceColor(android.R.attr.colorBackground), | ||||
|                             PorterDuff.Mode.SRC_ATOP | ||||
|                         ) | ||||
|                     } | ||||
|             } | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user