App Navigation: Bottom Navigation Bar vs Bottom App Bar?

Bottom navigation

enter image description here

Bottom App Bar

enter image description here

These are the two options when thinking about the bottom navigation for an Android App. What are the use cases for both? When should one be used over the other?