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

Commit c5908d9c authored by LuK1337's avatar LuK1337 Committed by Peter Cai
Browse files

gpu: drm: Make sure to set proper dim_status if fp mode on as well

Change-Id: I288883e744b8bd9787649358d7b33999e36c953d
parent 79d38ccc
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -5752,15 +5752,13 @@ static int sde_crtc_onscreenfinger_atomic_check(struct sde_crtc_state *cstate,
        if (mode ==3)
            aod_index = i;
	}
	if(fp_index >=0 && dim_mode!=0)
		display->panel->dim_status = true;
	else
		display->panel->dim_status = false;

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