Skip to content

Commit

Permalink
Use child fragment manager for date range picker fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
malinajirka committed Nov 17, 2020
1 parent 29b9c17 commit b7c44fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class ActivityLogListFragment : Fragment() {
}

private fun restoreDateRangePickerListeners() {
(parentFragmentManager.findFragmentByTag(DATE_PICKER_TAG) as? MaterialDatePicker<Pair<Long, Long>>)
(childFragmentManager.findFragmentByTag(DATE_PICKER_TAG) as? MaterialDatePicker<Pair<Long, Long>>)
?.let { picker ->
initDateRangePickerButtonClickListener(picker)
}
Expand Down

0 comments on commit b7c44fe

Please sign in to comment.