android/src/com/mapswithme/maps/background/WorkerService.java
private boolean processLocation()
  {
    final LocationManager manager = (LocationManager) getApplication().getSystemService(Context.LOCATION_SERVICE);
    final Location l = manager.getLastKnownLocation(LocationManager.PASSIVE_PROVIDER);
    if (l != null && !LocationUtils.isExpired(l, l.getTime(), LocationUtils.LOCATION_EXPIRATION_TIME_MILLIS_LONG))
    {
      placeDownloadNotification(l);
      return true;
    }

    return false;
  }
/**
   * Adds notification if current location isnt expired.
   *
   * @return whether notification was added
   */
Adds notification if current location isnt expired.
@return whether notification was added
Adds notification if current location isnt expired . @return whether notification was added
private boolean processLocation()
  {
    final LocationManager manager = (LocationManager) getApplication().getSystemService(Context.LOCATION_SERVICE);
    final Location l = manager.getLastKnownLocation(LocationManager.PASSIVE_PROVIDER);
    if (l != null && !LocationUtils.isExpired(l, l.getTime(), LocationUtils.LOCATION_EXPIRATION_TIME_MILLIS_LONG))
    {
      placeDownloadNotification(l);
      return true;
    }
    return false;
  }
private boolean processLocation ( ) { final LocationManager manager = ( LocationManager ) getApplication ( ) . getSystemService ( Context . LOCATION_SERVICE ) ; final Location l = manager . getLastKnownLocation ( LocationManager . PASSIVE_PROVIDER ) ; if ( l != null && ! LocationUtils . isExpired ( l , l . getTime ( ) , LocationUtils . LOCATION_EXPIRATION_TIME_MILLIS_LONG ) ) { placeDownloadNotification ( l ) ; return true ; } return false ; }
Adds notification if current location isnt expired.
Adds notification if current location isnt expired .