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

Commit 03c6aa59 authored by Kweku Adams's avatar Kweku Adams
Browse files

Add missing lock.

Bug: 241282429
Test: Android builds
Change-Id: Ieca39f51efd1de8c02e151bcdac97d6b6103dd55
(cherry picked from commit b573e9e8)
parent 3fdedfa2
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -5262,6 +5262,7 @@ public class AlarmManagerService extends SystemService {
                                        + TareBill.getName(bill) + " changed to " + canAfford);
                    }

                    synchronized (mLock) {
                        ArrayMap<EconomyManagerInternal.ActionBill, Boolean> actionAffordability =
                                mAffordabilityCache.get(userId, packageName);
                        if (actionAffordability == null) {
@@ -5269,6 +5270,7 @@ public class AlarmManagerService extends SystemService {
                            mAffordabilityCache.add(userId, packageName, actionAffordability);
                        }
                        actionAffordability.put(bill, canAfford);
                    }

                    mHandler.obtainMessage(AlarmHandler.TARE_AFFORDABILITY_CHANGED, userId,
                            canAfford ? 1 : 0, packageName)