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

Commit 386dfed0 authored by Kohsuke Yatoh's avatar Kohsuke Yatoh Committed by Android (Google) Code Review
Browse files

Merge "Set FOREGROUND thread priority to 'fonts' thread."

parents 4348003a b18a57cb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -362,7 +362,8 @@ public class FontsContract {
            // the font provider takes too much time. For now, request the font data to ensure
            // it is in the cache next time and return.
            if (sHandler == null) {
                sThread = new HandlerThread("fonts", Process.THREAD_PRIORITY_BACKGROUND);
                // Use FOREGROUND priority as this thread will block UI thread.
                sThread = new HandlerThread("fonts", Process.THREAD_PRIORITY_FOREGROUND);
                sThread.start();
                sHandler = new Handler(sThread.getLooper());
            }