sm8250-common: fod: Return touched z-order only

OnePlus places FP layer upon the dimlayer, causing the former one
highlighted. Only return the z-order with fingerprint pressed to
target the layer we need.

Signed-off-by: alk3pInjection <webmaster@raspii.tech>
Change-Id: I4666718018aa135a7d6387d957f136f23a5a5670
This commit is contained in:
Art_Chen 2021-05-14 15:51:02 +08:00 committed by Łukasz Patron
parent 1a67d0fdc2
commit 2a0985f372

View file

@ -16,8 +16,8 @@
#include <compositionengine/FodExtension.h> #include <compositionengine/FodExtension.h>
uint32_t getFodZOrder(uint32_t, bool touched) { uint32_t getFodZOrder(uint32_t z, bool touched) {
return touched ? 0xfc8 : 0xbd6; return touched ? 0xfc8 : z;
} }
uint64_t getFodUsageBits(uint64_t usageBits, bool) { uint64_t getFodUsageBits(uint64_t usageBits, bool) {