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" ;
22import { View } from "ui/core/view" ;
33import { Color } from "color" ;
44import { isAndroid , device } from "platform" ;
55import { Property , PropertyChangeData } from "ui/core/dependency-observable" ;
66import { PropertyMetadata } from "ui/core/proxy" ;
7- import { Font } from "ui/styling/font" ;
7+ import { Font } from "ui/styling/font" ;
88import enums = require( "ui/enums" ) ;
99import style = require( "ui/styling/style" ) ;
1010
@@ -60,7 +60,7 @@ export class CheckBox extends View implements CheckBoxInterface {
6060 set fillColor ( color : string ) {
6161 this . _fillColor = color ;
6262
63- if ( this . _android )
63+ if ( this . _android && device . sdkVersion >= "21" )
6464 this . _android . setButtonTintList ( android . content . res . ColorStateList . valueOf ( new Color ( this . _fillColor ) . android ) ) ;
6565 }
6666
Original file line number Diff line number Diff line change 22 "nativescript" : {
33 "id" : " org.nativescript.demo" ,
44 "tns-android" : {
5- "version" : " 2.1.1 "
5+ "version" : " 2.2.0 "
66 },
77 "tns-ios" : {
88 "version" : " 2.1.1"
Original file line number Diff line number Diff line change 11{
22 "name" : " nativescript-checkbox" ,
3- "version" : " 1.1.2 " ,
3+ "version" : " 1.1.3 " ,
44 "description" : " NativeScript plugin for checkbox widget." ,
55 "main" : " checkbox.js" ,
66 "typings" : " index.d.ts" ,
You can’t perform that action at this time.
0 commit comments