Context.getDrawable(): use the current theme

This commit is contained in:
Julian Winkler
2025-06-02 20:09:05 +02:00
parent 12d25c162f
commit 55fc7eb4f9
2 changed files with 6 additions and 6 deletions

View File

@@ -637,7 +637,7 @@ public class Context extends Object {
}
public final Drawable getDrawable(int resId) {
return getResources().getDrawable(resId);
return getResources().getDrawable(resId, getTheme());
}
public boolean isRestricted() { return false; }