ScoredNetworkNominator: Use getActiveScorerPackage() instead of settings

Use the getActiveScorerPackage() instead of using the settings value.
This method will always return null when recommendations are disabled by
the user (or if there are no scorers attached).

Bug: 148514485
Test: atest com.android.server.wifi
Test: Manually verified the Wi-Fi assistant toggle & ensured the
scored network nominator was enabled/disabled accordingly.

Change-Id: I5b181b9c4f6d578516a763ad6072c94498ffac24
3 files changed
tree: cd6312b1f866e35a06115a337552f5bcebb5d8e1
  1. apex/
  2. service/
  3. PREUPLOAD.cfg