Fix button brightness preview.

Change-Id: I2b0933062d443855114088e1bb4c09c68a83a0e5
(cherry picked from commit d3e44522cabf1760992d498eaa6af825c6d482df)