Wait for location settings change in test

When setting the location mode, use a ContentObserver to wait for the
change to propogate before returning from the method.

Fixes: 163981473
Test: atest NetworkScanApiTest
Change-Id: I00908f389f86aa82215dde74bd9778f790057d86
1 file changed