Skip to content

Commit

Permalink
++ fix context issue
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhat1707 committed May 15, 2020
1 parent c98f257 commit 1d886b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ public EasyWayLocation(final Context context,final boolean requireLastLocation,f
public EasyWayLocation(Context context, final LocationRequest locationRequest, final boolean requireLastLocation,final Listener listener) {
// mLocationManager = (LocationManager) context.getApplicationContext().getSystemService(Context.LOCATION_SERVICE);
this.context = context;
fusedLocationClient = LocationServices.getFusedLocationProviderClient(context);
this.mListener = listener;
fusedLocationClient = LocationServices.getFusedLocationProviderClient(context);
if (locationRequest != null){
this.locationRequest = locationRequest;
}else {
Expand Down

0 comments on commit 1d886b1

Please sign in to comment.