Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Д.З. по теме Navigation Component#15

Open
Gbdr73 wants to merge 1 commit intoAndroid-Developer-Basic:masterAndroid-Developer-Basic/Navigation:masterfrom
Gbdr73:masterGbdr73/Navigation:masterCopy head branch name to clipboard
Open

Д.З. по теме Navigation Component#15
Gbdr73 wants to merge 1 commit intoAndroid-Developer-Basic:masterAndroid-Developer-Basic/Navigation:masterfrom
Gbdr73:masterGbdr73/Navigation:masterCopy head branch name to clipboard

Conversation

@Gbdr73
Copy link

@Gbdr73 Gbdr73 commented Nov 23, 2025

No description provided.

?.observe(viewLifecycleOwner) { result ->
if (result) {
deleteRecipe()
Handler(Looper.getMainLooper()).post {

Choose a reason for hiding this comment

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

Интересно, что получается использование Handler.post здесь избыточно, так как observer уже выполняется в юай потоке. Можно напрямую вызвать navController.navigateUp() без обертки в handler

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.