Skip to content

ДЗ Android Navigation Components#16

Open
xeniamlkh wants to merge 3 commits intoAndroid-Developer-Basic:masterfrom
xeniamlkh:master
Open

ДЗ Android Navigation Components#16
xeniamlkh wants to merge 3 commits intoAndroid-Developer-Basic:masterfrom
xeniamlkh:master

Conversation

@xeniamlkh
Copy link

No description provided.

app:layout_constraintBottom_toTopOf="@id/recipe_description"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/recipe_title"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Указана constraint зависимость от самого себя. Элемент работает, но давай заменим на id/recipe_image

if (result == true) {
deleteRecipe()
findNavController().popBackStack()
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

После получения результата из диалога ключ RESULT_KEY не удаляется из SavedStateHandle. Это может привести к повторной обработке результата при возврате на экран. Давайтедобавим удаление ключа после обработки

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants