See: - NoteEditorActivity - NewCredentialsActivity Use new onBackPressedDispatcher callbacks instead.