Created
December 7, 2014 15:35
-
-
Save JorgeCastilloPrz/564e2f3ddab9673ea127 to your computer and use it in GitHub Desktop.
LocationController Injection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LocationController implements LocationListener { | |
private static final int TWO_MINUTES = 1000 * 60 * 2; | |
private Context context; | |
private LocationManager locationManager; | |
private String provider; | |
private Location bestLocationUntilNow; | |
@Inject | |
DialogController dialogController; | |
public LocationController(Context appContext, LocationManager locationManager) { | |
this.context = appContext; | |
this.locationManager = locationManager; | |
((ApplicationClass) appContext).inject(this); | |
} | |
{...} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment