Skip to content

Commit a779485

Browse files
[MBL-19897][All] Fix inbox list not refreshing after screen rotation on details screen
refs: MBL-19897 affects: Student, Teacher, Parent release note: Fixed inbox list not updating after performing operations on the conversation details screen following a screen rotation.
1 parent fc199e6 commit a779485

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • libs/pandautils/src/main/java/com/instructure/pandautils/features/inbox/list

libs/pandautils/src/main/java/com/instructure/pandautils/features/inbox/list/InboxFragment.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ class InboxFragment : BaseCanvasFragment(), NavigationCallbacks, FragmentInterac
111111

112112
private var confirmationSnackbar: Snackbar? = null
113113

114+
override fun onCreate(savedInstanceState: Bundle?) {
115+
super.onCreate(savedInstanceState)
116+
lifecycleScope.collectOneOffEvents(sharedEvents.events, ::handleSharedViewModelAction)
117+
}
118+
114119
override fun onCreateView(
115120
inflater: LayoutInflater, container: ViewGroup?,
116121
savedInstanceState: Bundle?
@@ -125,7 +130,6 @@ class InboxFragment : BaseCanvasFragment(), NavigationCallbacks, FragmentInterac
125130
super.onViewCreated(view, savedInstanceState)
126131
setUpEditToolbar()
127132
applyTheme()
128-
lifecycleScope.collectOneOffEvents(sharedEvents.events, ::handleSharedViewModelAction)
129133

130134
viewModel.events.observe(viewLifecycleOwner) { event ->
131135
event.getContentIfNotHandled()?.let {

0 commit comments

Comments
 (0)