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 = {
148
148
149
149
let ColorStateList : typeof android . content . res . ColorStateList ;
150
150
export function getColorStateList ( color : number ) {
151
- if ( ! color ) {
151
+ if ( color === undefined || color === null ) {
152
152
return null ;
153
153
}
154
154
if ( ! ColorStateList ) {
@@ -158,7 +158,7 @@ export function getColorStateList(color: number) {
158
158
}
159
159
160
160
export function getFullColorStateList ( activeColor : number , inactiveColor = 1627389952 , disabledColor = 1627389952 ) {
161
- if ( ! activeColor ) {
161
+ if ( activeColor === undefined || activeColor === null ) {
162
162
return null ;
163
163
}
164
164
if ( ! NUtils ) {
@@ -167,7 +167,7 @@ export function getFullColorStateList(activeColor: number, inactiveColor = 16273
167
167
return NUtils . getFullColorStateList ( activeColor , inactiveColor , disabledColor ) ;
168
168
}
169
169
export function getEnabledColorStateList ( color : number , disabledColor : number ) {
170
- if ( ! color ) {
170
+ if ( color === undefined || color === null ) {
171
171
return null ;
172
172
}
173
173
if ( ! NUtils ) {
You can’t perform that action at this time.
0 commit comments