From 9ec542c3dd2a242df958d36229b792dd24ea47b5 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sun, 3 Jul 2022 14:17:49 +0200 Subject: [PATCH] sm7125: fingerprint: Use dim layer kernel defined value Change-Id: I8f10fcb0edf992b6aab8581a28922bfb2eacafa0 --- fingerprint/Android.bp | 3 +++ fingerprint/UdfpsExtension.cpp | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/fingerprint/Android.bp b/fingerprint/Android.bp index 446f4e4..fb300c0 100644 --- a/fingerprint/Android.bp +++ b/fingerprint/Android.bp @@ -4,4 +4,7 @@ cc_library_static { include_dirs: [ "frameworks/native/services/surfaceflinger/CompositionEngine/include" ], + header_libs: [ + "generated_kernel_headers", + ], } diff --git a/fingerprint/UdfpsExtension.cpp b/fingerprint/UdfpsExtension.cpp index 8a3445d..8ff3159 100644 --- a/fingerprint/UdfpsExtension.cpp +++ b/fingerprint/UdfpsExtension.cpp @@ -15,9 +15,13 @@ */ #include +#include uint32_t getUdfpsZOrder(uint32_t z, bool touched) { - (void) touched; + if (touched) { + z |= FOD_PRESSED_LAYER_ZORDER; + } + return z; }