Skip to content

Commit

Permalink
fix some breaking API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Guardiola31337 committed Oct 5, 2017
1 parent 31d426b commit cb7cfe9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class AndroidLocationEngine extends LocationEngine implements LocationLis
private LocationManager locationManager;
private String currentProvider = null;

private AndroidLocationEngine(Context context) {
public AndroidLocationEngine(Context context) {
super();

Log.v(LOG_TAG, "Initializing.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* Sample LocationEngine using Google Play Services
*/
class GoogleLocationEngine extends LocationEngine implements
public class GoogleLocationEngine extends LocationEngine implements
GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener {

private static final String LOG_TAG = GoogleLocationEngine.class.getSimpleName();
Expand All @@ -28,7 +28,7 @@ class GoogleLocationEngine extends LocationEngine implements
private WeakReference<Context> context;
private GoogleApiClient googleApiClient;

private GoogleLocationEngine(Context context) {
public GoogleLocationEngine(Context context) {
super();
this.context = new WeakReference<>(context);
googleApiClient = new GoogleApiClient.Builder(this.context.get())
Expand All @@ -38,7 +38,7 @@ private GoogleLocationEngine(Context context) {
.build();
}

static synchronized LocationEngine getLocationEngine(Context context) {
public static synchronized LocationEngine getLocationEngine(Context context) {
if (instance == null) {
instance = new GoogleLocationEngine(context.getApplicationContext());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Sample LocationEngine using the Open Source Lost library
*/
class LostLocationEngine extends LocationEngine implements
public class LostLocationEngine extends LocationEngine implements
LostApiClient.ConnectionCallbacks, LocationListener {

private static final String LOG_TAG = LostLocationEngine.class.getSimpleName();
Expand All @@ -25,15 +25,15 @@ class LostLocationEngine extends LocationEngine implements
private WeakReference<Context> context;
private LostApiClient lostApiClient;

private LostLocationEngine(Context context) {
public LostLocationEngine(Context context) {
super();
this.context = new WeakReference<>(context);
lostApiClient = new LostApiClient.Builder(this.context.get())
.addConnectionCallbacks(this)
.build();
}

static synchronized LocationEngine getLocationEngine(Context context) {
public static synchronized LocationEngine getLocationEngine(Context context) {
if (instance == null) {
instance = new LostLocationEngine(context.getApplicationContext());
}
Expand Down

0 comments on commit cb7cfe9

Please sign in to comment.