Skip to content

Read and update data using Room - Missing step to disable Sell button when out of stock #204

@lisaminogue1

Description

@lisaminogue1

name: Read and update data using Room issue template.
about: Issue template for Read and update data using Room
title: Read and update data using Room
labels: ''
assignees: ''


URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-update-data-room#7

In which task and step of the codelab can this issue be found?

  1. Implement sell Item
    Under add a function in the ViewModel, step 12

Describe the problem

Sell button doesn't disable properly with the steps in the code lab. A step is missing to update ItemDetailsScreen, in the ItemDetailsBody function, the Button enabled needs to be set based on the value of outOfStock. Maybe that is included in the room branch (I didn't check), but it is not included if you continue your own code from the previous lab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions