users can press the log meal button, input some information, then click the history button on the bottom navigation bar. Currently meal information is only stored to the database when the user clicks the default back button while on the detail fragment. So, when the user navigates to the history fragment without pressing the default back button first, their information is not stored yet so they see an empty item on the history fragment
users can press the log meal button, input some information, then click the history button on the bottom navigation bar. Currently meal information is only stored to the database when the user clicks the default back button while on the detail fragment. So, when the user navigates to the history fragment without pressing the default back button first, their information is not stored yet so they see an empty item on the history fragment