Changed the UI to add a switch for the auto water option, and to remove the plant image since we no longer use them.
Connected the new plant name text and the autowater switch to firebase, allowing the user to save the new values to the database.
Set the editText and switch to reflect the current values stored in firebase when the page first opens
Added some basic input validation to restrict the plant name to alphabet numbers and spaces. Set a max 15 char limit, and should display a toast error and not save data if an empty string is passed
Connected the delete button to firebase. It now correctly updates the "Delete" key on firebase.
Changed the UI to add a switch for the auto water option, and to remove the plant image since we no longer use them.
Connected the new plant name text and the autowater switch to firebase, allowing the user to save the new values to the database.
Set the editText and switch to reflect the current values stored in firebase when the page first opens
Added some basic input validation to restrict the plant name to alphabet numbers and spaces. Set a max 15 char limit, and should display a toast error and not save data if an empty string is passed
Connected the delete button to firebase. It now correctly updates the "Delete" key on firebase.