Skip to content

Commit

Permalink
Merge pull request #9179 from garymathews/TIMOB-24898
Browse files Browse the repository at this point in the history
[TIMOB-24898] Allow background transparency when borderRadius is set
  • Loading branch information
Lokesh Choudhary committed Jul 6, 2017
2 parents 0b911d6 + b664a3d commit badf9df
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,12 @@ public void propertyChanged(String key, Object oldValue, Object newValue, KrollP
} else if (key.startsWith(TiC.PROPERTY_BORDER_PREFIX)) {
handleBorderProperty(key, newValue);
}

// TIMOB-24898: disable HW acceleration to allow transparency
// when the backgroundColor alpha channel has been set
if ((byte)(bgColor >> 24) < 0xFF) {
disableHWAcceleration();
}
}

applyCustomBackground();
Expand Down Expand Up @@ -1419,6 +1425,12 @@ private void initializeBorder(KrollDict d, Integer bgColor)
nativeView.invalidate();
borderView.invalidate();
}

// TIMOB-24898: disable HW acceleration to allow transparency
// when the backgroundColor alpha channel has been set
if ((byte)(bgColor >> 24) < 0xFF) {
disableHWAcceleration();
}
}
}

Expand Down

0 comments on commit badf9df

Please sign in to comment.