Fix blur region alpha not fading during animations
Bug: 190606509
Test: m && flash && test on a window that fades
Change-Id: I9482e2b3188c1e831a60d4e2920b0798edb11015
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 2bf5602..a8f37ad 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -2018,7 +2018,7 @@
const std::vector<BlurRegion> Layer::getBlurRegions() const {
auto regionsCopy(getDrawingState().blurRegions);
- int layerAlpha = getAlpha();
+ float layerAlpha = getAlpha();
for (auto& region : regionsCopy) {
region.alpha = region.alpha * layerAlpha;
}