mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
26 lines
968 B
Java
26 lines
968 B
Java
package androidx.appcompat.widget;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.Resources;
|
|
import android.graphics.drawable.Drawable;
|
|
import java.lang.ref.WeakReference;
|
|
|
|
/* loaded from: classes.dex */
|
|
class TintResources extends ResourcesWrapper {
|
|
private final WeakReference<Context> mContextRef;
|
|
|
|
public TintResources(Context context, Resources resources) {
|
|
super(resources);
|
|
this.mContextRef = new WeakReference<>(context);
|
|
}
|
|
|
|
@Override // androidx.appcompat.widget.ResourcesWrapper, android.content.res.Resources
|
|
public Drawable getDrawable(int i) throws Resources.NotFoundException {
|
|
Drawable drawableCanonical = getDrawableCanonical(i);
|
|
Context context = this.mContextRef.get();
|
|
if (drawableCanonical != null && context != null) {
|
|
ResourceManagerInternal.get().tintDrawableUsingColorFilter(context, i, drawableCanonical);
|
|
}
|
|
return drawableCanonical;
|
|
}
|
|
}
|