Skip to content

Commit b650bbb

Browse files
authored
Api 21 fix (NativeScript#3187)
1 parent c9765d4 commit b650bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tns-core-modules/ui/segmented-bar/segmented-bar.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export class SegmentedBarStyler implements style.Styler {
283283
let vg = <android.view.ViewGroup>tabHost.getTabWidget().getChildTabViewAt(tabIndex);
284284

285285
var backgroundDrawable = vg.getBackground();
286-
if (android.os.Build.VERSION.SDK_INT >= 21 && backgroundDrawable && types.isFunction(backgroundDrawable.setColorFilter)) {
286+
if (android.os.Build.VERSION.SDK_INT > 21 && backgroundDrawable && types.isFunction(backgroundDrawable.setColorFilter)) {
287287
backgroundDrawable.setColorFilter(newValue, android.graphics.PorterDuff.Mode.SRC_IN);
288288
} else {
289289
let stateDrawable = new android.graphics.drawable.StateListDrawable();

0 commit comments

Comments
 (0)