mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	Update DrawableResolver.kt
Nicer import 😉
			
			
This commit is contained in:
		| @@ -4,6 +4,7 @@ import android.content.Context | ||||
| import android.graphics.drawable.Drawable | ||||
| import android.util.TypedValue | ||||
| import androidx.annotation.AttrRes | ||||
| import androidx.core.content.ContextCompat | ||||
|  | ||||
| /** | ||||
|  * Utility class for resolving [Drawables](Drawable) | ||||
| @@ -11,7 +12,7 @@ import androidx.annotation.AttrRes | ||||
| object DrawableResolver { | ||||
|     @JvmStatic | ||||
|     fun resolveDrawable(context: Context, @AttrRes attrResId: Int): Drawable? { | ||||
|         return androidx.core.content.ContextCompat.getDrawable( | ||||
|         return ContextCompat.getDrawable( | ||||
|             context, | ||||
|             TypedValue().apply { | ||||
|                 context.theme.resolveAttribute( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 litetex
					litetex