Merge "Add missing lock." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1db328df8a
@@ -5262,13 +5262,15 @@ public class AlarmManagerService extends SystemService {
|
|||||||
+ TareBill.getName(bill) + " changed to " + canAfford);
|
+ TareBill.getName(bill) + " changed to " + canAfford);
|
||||||
}
|
}
|
||||||
|
|
||||||
ArrayMap<EconomyManagerInternal.ActionBill, Boolean> actionAffordability =
|
synchronized (mLock) {
|
||||||
mAffordabilityCache.get(userId, packageName);
|
ArrayMap<EconomyManagerInternal.ActionBill, Boolean> actionAffordability =
|
||||||
if (actionAffordability == null) {
|
mAffordabilityCache.get(userId, packageName);
|
||||||
actionAffordability = new ArrayMap<>();
|
if (actionAffordability == null) {
|
||||||
mAffordabilityCache.add(userId, packageName, actionAffordability);
|
actionAffordability = new ArrayMap<>();
|
||||||
|
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