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

Commit dc364ad5 authored by mqi's avatar mqi Committed by Rashed Abdel-Tawab
Browse files

SystemUI: Fix SystemUI ANR

Add a condition check before wait operation to avoid potential dead lock.

CRs-Fixed: 1087577
Change-Id: Ia3876048ce63c1b8932c8a7a2e997d1d82c08c60
parent bdf823ed
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -233,7 +233,9 @@ class BackgroundTaskLoader implements Runnable {
                    synchronized(mLoadQueue) {
                        try {
                            mWaitingOnLoadQueue = true;
                            while(mLoadQueue.isEmpty()) {
                                mLoadQueue.wait();
                            }
                            mWaitingOnLoadQueue = false;
                        } catch (InterruptedException ie) {
                            ie.printStackTrace();