Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79d38ccc authored by Vache's avatar Vache Committed by Peter Cai
Browse files

gpu: drm: Force fp pressed if fp mode on

Change-Id: Ide2c2b4fafb00fe5ae4063b852d2d19be252f63d
parent d63df86d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -5757,6 +5757,15 @@ static int sde_crtc_onscreenfinger_atomic_check(struct sde_crtc_state *cstate,
	else
		display->panel->dim_status = false;

	if (fp_mode == 1) {
		cstate->fingerprint_pressed = true;
		return 0;
	} else {
		cstate->fingerprint_pressed = false;
		cstate->fingerprint_dim_layer = NULL;
		return 0;
	}

	if(aod_index <0){
		oneplus_aod_hid = 0;
		aod_layer_hide = 0;