Merge "Don't try to handle callbacks until mSystemReady is set." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
20f7d15884
@@ -5288,6 +5288,9 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
|
||||
@Override
|
||||
public void onTempPowerSaveWhitelistChange(int appId, boolean added) {
|
||||
synchronized (mUidRulesFirstLock) {
|
||||
if (!mSystemReady) {
|
||||
return;
|
||||
}
|
||||
mLogger.tempPowerSaveWlChanged(appId, added);
|
||||
if (added) {
|
||||
mPowerSaveTempWhitelistAppIds.put(appId, true);
|
||||
|
||||
Reference in New Issue
Block a user