From 2a0985f372549d1aec2b9a7faec7b9746504d5f4 Mon Sep 17 00:00:00 2001 From: Art_Chen Date: Fri, 14 May 2021 15:51:02 +0800 Subject: [PATCH] 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 Change-Id: I4666718018aa135a7d6387d957f136f23a5a5670 --- fod/FodExtension.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fod/FodExtension.cpp b/fod/FodExtension.cpp index 8dcea16..b8f7291 100644 --- a/fod/FodExtension.cpp +++ b/fod/FodExtension.cpp @@ -16,8 +16,8 @@ #include -uint32_t getFodZOrder(uint32_t, bool touched) { - return touched ? 0xfc8 : 0xbd6; +uint32_t getFodZOrder(uint32_t z, bool touched) { + return touched ? 0xfc8 : z; } uint64_t getFodUsageBits(uint64_t usageBits, bool) {