Skip to content

Commit

Permalink
remove super call and override default implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
empratyush authored and thestinger committed Mar 26, 2022
1 parent a67c839 commit 28885af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/app/grapheneos/camera/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,19 @@ class App : Application() {
}

override fun onProviderDisabled(provider: String) {
super.onProviderDisabled(provider)
if (!isAnyLocationProvideActive()) {
activity?.indicateLocationProvidedIsDisabled()
}
}

override fun onLocationChanged(locations: MutableList<Location>) {
super.onLocationChanged(locations)
val location = locations.getAccurateOne()
if (location != null) {
this@App.location = location
}
}

override fun onProviderEnabled(provider: String) {}
}
}

Expand Down

0 comments on commit 28885af

Please sign in to comment.