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

Commit e417158c authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix [2330211] sensors thread priority too low

bump the sensor thread priority to URGENT_DISPLAY. Events will be enqueued
in the UI (or other user provided) thread, which runs at DISPLAY prio.
parent d6542507
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -364,7 +364,7 @@ public class SensorManager
                final float[] values = new float[3];
                final int[] status = new int[1];
                final long timestamp[] = new long[1];
                Process.setThreadPriority(Process.THREAD_PRIORITY_DISPLAY);
                Process.setThreadPriority(Process.THREAD_PRIORITY_URGENT_DISPLAY);

                if (!open()) {
                    return;