Skip to content

Commit

Permalink
Dismiss travel mode item when clicking button
Browse files Browse the repository at this point in the history
  • Loading branch information
BartNijland91 committed Jul 20, 2021
1 parent e65a898 commit 5254778
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ class TravelModeDialogFragment : ExpandedBottomSheetDialogFragment() {
binding.buttonDomestic.setToggled(true)
binding.buttonForeign.setToggled(false)
setFooter(binding, GreenCardType.Domestic)
dismiss()
}

binding.buttonForeign.setOnClickListener {
myOverviewViewModel.refreshOverviewItems(GreenCardType.Eu)
binding.buttonDomestic.setToggled(false)
binding.buttonForeign.setToggled(true)
setFooter(binding, GreenCardType.Eu)
dismiss()
}

ViewCompat.setAccessibilityDelegate(binding.close, object : AccessibilityDelegateCompat() {
Expand Down

0 comments on commit 5254778

Please sign in to comment.