File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ export const stateSets = {
148148
149149let ColorStateList : typeof android . content . res . ColorStateList ;
150150export function getColorStateList ( color : number ) {
151- if ( ! color ) {
151+ if ( color === undefined || color === null ) {
152152 return null ;
153153 }
154154 if ( ! ColorStateList ) {
@@ -158,7 +158,7 @@ export function getColorStateList(color: number) {
158158}
159159
160160export function getFullColorStateList ( activeColor : number , inactiveColor = 1627389952 , disabledColor = 1627389952 ) {
161- if ( ! activeColor ) {
161+ if ( activeColor === undefined || activeColor === null ) {
162162 return null ;
163163 }
164164 if ( ! NUtils ) {
@@ -167,7 +167,7 @@ export function getFullColorStateList(activeColor: number, inactiveColor = 16273
167167 return NUtils . getFullColorStateList ( activeColor , inactiveColor , disabledColor ) ;
168168}
169169export function getEnabledColorStateList ( color : number , disabledColor : number ) {
170- if ( ! color ) {
170+ if ( color === undefined || color === null ) {
171171 return null ;
172172 }
173173 if ( ! NUtils ) {
You can’t perform that action at this time.
0 commit comments