Skip to content

Commit

Permalink
Updated MPLocationListener to eliminate nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansi-mParticle committed Sep 17, 2024
1 parent f48c8c4 commit 64bb2d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import android.location.LocationListener
import android.os.Bundle
import com.mparticle.MParticle

class MPLocationListener(private val mParticle: MParticle?) : LocationListener {
class MPLocationListener(private val mParticle: MParticle) : LocationListener {
override fun onLocationChanged(location: Location) {
mParticle?.setLocation(location)
mParticle.setLocation(location)
}

override fun onStatusChanged(provider: String, status: Int, extras: Bundle) {
Expand Down

0 comments on commit 64bb2d6

Please sign in to comment.