Temporarily change PorterDuff mode MULTIPLY to SRC_IN
Overflow pop up dialog for action bar uses PorterDuff color filters in mode SRC_IN. The mode is not supported by AlphaComposite currently. So, in order to render something, we swap it out with SRC_IN. Change-Id: I987e101728ecb76b5e3d5cd91f831e6f63a4321f
This commit is contained in:
@ -98,6 +98,11 @@ public class PorterDuffColorFilter_Delegate extends ColorFilter_Delegate {
|
||||
|
||||
private PorterDuffColorFilter_Delegate(int srcColor, int mode) {
|
||||
mSrcColor = srcColor;
|
||||
// Temporarily change multiply to SRC_IN to render menus.
|
||||
// TODO: support Mode.MULTIPLY
|
||||
if (mode == Mode.MULTIPLY.nativeInt) {
|
||||
mode = Mode.SRC_IN.nativeInt;
|
||||
}
|
||||
mMode = getPorterDuffMode(mode);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user