Merge "Add missing lock." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1db328df8a
@@ -5262,6 +5262,7 @@ public class AlarmManagerService extends SystemService {
|
|||||||
+ TareBill.getName(bill) + " changed to " + canAfford);
|
+ TareBill.getName(bill) + " changed to " + canAfford);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
synchronized (mLock) {
|
||||||
ArrayMap<EconomyManagerInternal.ActionBill, Boolean> actionAffordability =
|
ArrayMap<EconomyManagerInternal.ActionBill, Boolean> actionAffordability =
|
||||||
mAffordabilityCache.get(userId, packageName);
|
mAffordabilityCache.get(userId, packageName);
|
||||||
if (actionAffordability == null) {
|
if (actionAffordability == null) {
|
||||||
@@ -5269,6 +5270,7 @@ public class AlarmManagerService extends SystemService {
|
|||||||
mAffordabilityCache.add(userId, packageName, actionAffordability);
|
mAffordabilityCache.add(userId, packageName, actionAffordability);
|
||||||
}
|
}
|
||||||
actionAffordability.put(bill, canAfford);
|
actionAffordability.put(bill, canAfford);
|
||||||
|
}
|
||||||
|
|
||||||
mHandler.obtainMessage(AlarmHandler.TARE_AFFORDABILITY_CHANGED, userId,
|
mHandler.obtainMessage(AlarmHandler.TARE_AFFORDABILITY_CHANGED, userId,
|
||||||
canAfford ? 1 : 0, packageName)
|
canAfford ? 1 : 0, packageName)
|
||||||
|
|||||||
Reference in New Issue
Block a user