Loading core/java/android/widget/CompoundButton.java +2 −0 Original line number Diff line number Diff line Loading @@ -69,7 +69,9 @@ public abstract class CompoundButton extends Button implements Checkable { context.obtainStyledAttributes( attrs, com.android.internal.R.styleable.CompoundButton, defStyle, 0); a.getResources().setContext(context); Drawable d = a.getDrawable(com.android.internal.R.styleable.CompoundButton_button); a.getResources().setContext(null); if (d != null) { setButtonDrawable(d); } Loading Loading
core/java/android/widget/CompoundButton.java +2 −0 Original line number Diff line number Diff line Loading @@ -69,7 +69,9 @@ public abstract class CompoundButton extends Button implements Checkable { context.obtainStyledAttributes( attrs, com.android.internal.R.styleable.CompoundButton, defStyle, 0); a.getResources().setContext(context); Drawable d = a.getDrawable(com.android.internal.R.styleable.CompoundButton_button); a.getResources().setContext(null); if (d != null) { setButtonDrawable(d); } Loading