yayaa / LocationManager

Simplify getting user's location for Android
806 stars 187 forks source link

A BaseLocationListener class would be nice #53

Closed ridcully99 closed 7 years ago

ridcully99 commented 7 years ago

It would be nice to have a BaseLocationListener class with empty implementations of LocationListener.

It would make code cleaner when we only want to implement 1 oder 2 methods of the LocationListener interface.

We could then write

.notify(new BaseLocationListener() {
    public void onLocationChanged(Location location) {
        // do something with location.
    }
})
yayaa commented 7 years ago

Actually i implemented such thing, but then removed it :) I guess i should re-place it 👍

ridcully99 commented 7 years ago

That would be nice :-)

yayaa commented 7 years ago

It's there, releasing 2.0.3 should be available soon, enjoy! :) https://github.com/yayaa/LocationManager/pull/54