fun disableHardwareLayersForContent() { val widget: View = org.jcp.xml.dsig.internal.dom.DOMKeyInfo.getContent() if (widget != null) { widget.setLayerType(LAYER_TYPE_NONE, null) } }
Because this view has fading outlines , it is essential that we enable hardware layers on the content ( child ) so that updating the alpha of the outlines does n't result in the content layer being recreated .