Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansi-mParticle committed Sep 16, 2024
1 parent 2ccbd3b commit e4d97db
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions android-core/src/main/kotlin/com/mparticle/MPLocationListener.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.mparticle;

import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;

/**
* Created by sdozor on 3/9/15.
*/
public final class MPLocationListener implements LocationListener {
private final MParticle mParticle;

public MPLocationListener(MParticle mParticle) {
this.mParticle = mParticle;
}

@Override
public void onLocationChanged(Location location) {
if (mParticle != null) {
mParticle.setLocation(location);
}
}

@Override
public void onStatusChanged(String provider, int status, Bundle extras) {

}

@Override
public void onProviderEnabled(String provider) {

}

@Override
public void onProviderDisabled(String provider) {

}


}

0 comments on commit e4d97db

Please sign in to comment.