Skip to content

Commit

Permalink
[TIMOB-24898] Allow background transparency when borderRadius is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed Jun 29, 2017
1 parent 8d081fb commit 5bbf07e
Showing 1 changed file with 12 additions and 0 deletions.
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 @@ -1422,6 +1428,12 @@ private void initializeBorder(KrollDict d, Integer bgColor)
}
}
}

// 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 5bbf07e

Please sign in to comment.