@@ -39,22 +39,22 @@ public class OmegaCenterIconButton extends AppCompatButton {
3939
4040 public OmegaCenterIconButton (Context context ) {
4141 super (context );
42- init (context , null );
42+ init (context , null , 0 );
4343 }
4444
4545 public OmegaCenterIconButton (Context context , AttributeSet attrs ) {
4646 super (context , attrs );
47- init (context , attrs );
47+ init (context , attrs , 0 );
4848 }
4949
5050 public OmegaCenterIconButton (Context context , AttributeSet attrs , int defStyleAttr ) {
5151 super (context , attrs , defStyleAttr );
52- init (context , attrs );
52+ init (context , attrs , defStyleAttr );
5353 }
5454
55- private void init (Context context , AttributeSet attrs ) {
55+ private void init (Context context , AttributeSet attrs , int defStyleAttr ) {
5656 if (attrs != null ) {
57- TypedArray typedArray = context .obtainStyledAttributes (attrs , R .styleable .OmegaCenterIconButton );
57+ TypedArray typedArray = context .obtainStyledAttributes (attrs , R .styleable .OmegaCenterIconButton , defStyleAttr );
5858 mTintColor = typedArray .getColor (R .styleable .OmegaCenterIconButton_drawableTint , Color .TRANSPARENT );
5959 mDrawableSize = typedArray .getDimensionPixelSize (R .styleable .OmegaCenterIconButton_drawableSize , -1 );
6060
@@ -218,4 +218,4 @@ public boolean isAllCaps() {
218218
219219 return method .getClass ().getSimpleName ().equals ("AllCapsTransformationMethod" );
220220 }
221- }
221+ }
0 commit comments