fixed f-droid variant nullability error
This commit is contained in:
parent
0311da4b82
commit
a954d994a7
|
@ -49,11 +49,10 @@ class OpenStreetMapViewerFragment : BaseFragment(), Constants {
|
|||
override fun onActivityCreated(savedInstanceState: Bundle?) {
|
||||
super.onActivityCreated(savedInstanceState)
|
||||
setHasOptionsMenu(true)
|
||||
val args = arguments
|
||||
val latitude = args.getDouble(EXTRA_LATITUDE, Double.NaN)
|
||||
val longitude = args.getDouble(EXTRA_LONGITUDE, Double.NaN)
|
||||
val latitude = arguments!!.getDouble(EXTRA_LATITUDE, Double.NaN)
|
||||
val longitude = arguments!!.getDouble(EXTRA_LONGITUDE, Double.NaN)
|
||||
if (latitude.isNaN() || longitude.isNaN()) {
|
||||
activity.finish()
|
||||
activity!!.finish()
|
||||
return
|
||||
}
|
||||
this.latitude = latitude
|
||||
|
|
Loading…
Reference in New Issue