android / android/architecture-samples

"TODO-MVVM-RXJAVA" Snackbar message is not shown.

Open
#506 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
45.8k
Forks
11.9k
PR merge metrics
No merged PRs in 30d

Description

"TODO-MVVM-RXJAVA"

`createTask()` method of `AddEditTaskViewModel.java` is calling `showSnackbar()` when the user is trying to create an empty task. This snackbar is ignored, because of the immediately following `.doOnCompleted(mNavigator::onTaskSaved)` that finishes the `Activity` and never lets the Snackbar to appear.

Contributor guide

Open the contributing guide

Research direction

Start in AddEditTaskViewModel.java at createTask(), where an empty task triggers showSnackbar() followed by doOnCompleted(mNavigator::onTaskSaved). Trace this completion flow and verify that the empty-task snackbar remains visible instead of the Activity finishing immediately.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.