Merge "Send RECOMMEND_NETWORKS action when binding to provider."

am: 1471ad3ea7

Change-Id: I9b052e48c067dc50111c6ce6bf1b200232676aa2
This commit is contained in:
Joe LaPenna
2016-12-28 02:49:01 +00:00
committed by android-build-merger

View File

@@ -36,6 +36,7 @@ import android.net.INetworkScoreService;
import android.net.NetworkKey;
import android.net.NetworkScorerAppManager;
import android.net.NetworkScorerAppManager.NetworkScorerAppData;
import android.net.NetworkScoreManager;
import android.net.RecommendationRequest;
import android.net.RecommendationResult;
import android.net.ScoredNetwork;
@@ -631,7 +632,7 @@ public class NetworkScoreService extends INetworkScoreService.Stub {
void connect(Context context) {
if (!mBound) {
Intent service = new Intent();
Intent service = new Intent(NetworkScoreManager.ACTION_RECOMMEND_NETWORKS);
service.setComponent(mComponentName);
mBound = context.bindServiceAsUser(service, this,
Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE,