File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- import { CheckBoxInterface } from "./checkbox" ;
1
+ import { CheckBoxInterface } from "./checkbox" ;
2
2
import { View } from "ui/core/view" ;
3
3
import { Color } from "color" ;
4
4
import { isAndroid , device } from "platform" ;
5
5
import { Property , PropertyChangeData } from "ui/core/dependency-observable" ;
6
6
import { PropertyMetadata } from "ui/core/proxy" ;
7
- import { Font } from "ui/styling/font" ;
7
+ import { Font } from "ui/styling/font" ;
8
8
import enums = require( "ui/enums" ) ;
9
9
import style = require( "ui/styling/style" ) ;
10
10
@@ -60,7 +60,7 @@ export class CheckBox extends View implements CheckBoxInterface {
60
60
set fillColor ( color : string ) {
61
61
this . _fillColor = color ;
62
62
63
- if ( this . _android )
63
+ if ( this . _android && device . sdkVersion >= "21" )
64
64
this . _android . setButtonTintList ( android . content . res . ColorStateList . valueOf ( new Color ( this . _fillColor ) . android ) ) ;
65
65
}
66
66
Original file line number Diff line number Diff line change 2
2
"nativescript" : {
3
3
"id" : " org.nativescript.demo" ,
4
4
"tns-android" : {
5
- "version" : " 2.1.1 "
5
+ "version" : " 2.2.0 "
6
6
},
7
7
"tns-ios" : {
8
8
"version" : " 2.1.1"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nativescript-checkbox" ,
3
- "version" : " 1.1.2 " ,
3
+ "version" : " 1.1.3 " ,
4
4
"description" : " NativeScript plugin for checkbox widget." ,
5
5
"main" : " checkbox.js" ,
6
6
"typings" : " index.d.ts" ,
You can’t perform that action at this time.
0 commit comments