Refresh fragment when dialogfragment is dismissed

前端 未结 6 1851
南方客
南方客 2021-02-04 01:01

Is there any way I can detect when a DialogFragment is dismissed, so that i can update its parent fragment?

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-04 01:34

    Override onDismiss() of DialogFragment, or when building the underlying dialog, set a listener with setOnDimissListener().

提交回复
热议问题