Merge "Fix NetworkScoreService#getActiveScorer." into rvc-dev am: ea920f597d

Change-Id: I2567e8965f452fb98ca6862fbbe590a80c746b37
This commit is contained in:
Varun Anand
2020-03-19 21:36:12 +00:00
committed by Automerger Merge Worker

View File

@@ -760,12 +760,11 @@ public class NetworkScoreService extends INetworkScoreService.Stub {
@Override
public String getActiveScorerPackage() {
enforceSystemOrHasScoreNetworks();
synchronized (mServiceConnectionLock) {
if (mServiceConnection != null) {
return mServiceConnection.getPackageName();
}
NetworkScorerAppData appData = mNetworkScorerAppManager.getActiveScorer();
if (appData == null) {
return null;
}
return null;
return appData.getRecommendationServicePackageName();
}
/**
@@ -775,13 +774,7 @@ public class NetworkScoreService extends INetworkScoreService.Stub {
public NetworkScorerAppData getActiveScorer() {
// Only the system can access this data.
enforceSystemOnly();
synchronized (mServiceConnectionLock) {
if (mServiceConnection != null) {
return mServiceConnection.getAppData();
}
}
return null;
return mNetworkScorerAppManager.getActiveScorer();
}
/**