Skip to content

Commit

Permalink
Call finishAfterTransition() instead of finish()
Browse files Browse the repository at this point in the history
This commit closes #94

Signed-off-by: Rafael Chagas <[email protected]>
  • Loading branch information
rtchagas committed Aug 10, 2023
1 parent 4c7ce76 commit 8a39c0b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ internal class PlacePickerActivity :
override fun onOptionsItemSelected(item: MenuItem): Boolean {

if (android.R.id.home == item.itemId) {
finish()
finishAfterTransition()
return true
}

Expand Down Expand Up @@ -201,7 +201,7 @@ internal class PlacePickerActivity :
override fun onPlaceConfirmed(place: Place) {
val selectedLatLng = googleMap?.cameraPosition?.target ?: LatLng(0.0, 0.0)
PingPlacePicker.onPlaceSelectedListener?.onPlaceSelected(place, selectedLatLng)
finish()
finishAfterTransition()
}

private fun adjustElevationOverlayColors() {
Expand Down

0 comments on commit 8a39c0b

Please sign in to comment.