Dismiss listener

This commit is contained in:
androiddevkkotlin 2020-11-29 11:44:40 +02:00
parent ad281d4445
commit bb1f7cdd71

View file

@ -115,6 +115,10 @@ public class DismissRouteBottomSheetFragment extends MenuBottomSheetDialogFragme
} }
public void setOnDismissListener(DialogInterface.OnDismissListener dismissListener) {
this.dismissListener = dismissListener;
}
public static void showInstance(@NonNull FragmentManager fragmentManager, @Nullable Fragment targetFragment, DialogInterface.OnDismissListener dismissListener) { public static void showInstance(@NonNull FragmentManager fragmentManager, @Nullable Fragment targetFragment, DialogInterface.OnDismissListener dismissListener) {
if (!fragmentManager.isStateSaved()) { if (!fragmentManager.isStateSaved()) {
DismissRouteBottomSheetFragment fragment = new DismissRouteBottomSheetFragment(); DismissRouteBottomSheetFragment fragment = new DismissRouteBottomSheetFragment();