Fix navigation bug after deleting notification profile.

This commit is contained in:
Cody Henthorne
2021-12-15 11:25:51 -05:00
committed by Greyson Parrelli
parent 8014a70134
commit a15ba60252

View File

@@ -86,7 +86,7 @@ class NotificationProfileDetailsFragment : DSLSettingsFragment() {
adapter.submitList(getConfiguration(state).toMappingModelList())
}
NotificationProfileDetailsViewModel.State.NotLoaded -> Unit
NotificationProfileDetailsViewModel.State.Invalid -> findNavController().navigateUp()
NotificationProfileDetailsViewModel.State.Invalid -> requireActivity().onBackPressed()
}
}
}