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

Commit 1db328df authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add missing lock." into tm-qpr-dev

parents 00825873 03c6aa59
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)