mozilla/MozStumbler — pull request #1321 by cascheberg (2014-12-03 07:57:55+00:00)
Title: Minor improvement regarding enabling GPS in MapLocationListener

To be improved: you can see the GPS icon blinking once when scanning is paused and the app comes to the foreground (`MapFragment.onResume`).

In `MapLocationListener` there is this code:

```
enableLocationListener(true, mNetworkLocationListener);
enableLocationListener(true, mGpsLocationListener);

if (mapFragment.getApplication().isIsScanningPausedDueToNoMotion()) {
pauseGpsUpdates(true);
}
```
If scanning is paused, the result of what this does is this:
```
enableLocationListener(true, mNetworkLocationListener);
enableLocationListener(true, mGpsLocationListener);
// then in pauseGpsUpdates:
enableLocationListener(false, mGpsLocationListener);
enableLocationListener(true, mNetworkLocationListener);
```

The updated code in this PR only runs one of the two paths.