Skip to content

Instantly share code, notes, and snippets.

View vietnt-uet's full-sized avatar

Nguyen Trong Viet vietnt-uet

View GitHub Profile
//Daily watering first
//If enough daily watering then levelup watering
mBtnUpgradePlant.setDebouncedOnClickListener {
if (UserDataManager.getInstance().userDTO?.totalWater!! <= 0) {
mFocusListener?.onShowNeedWater()
} else if (mPlantDto?.btnWater == true) {
if (DateTimeUtils.isToday(mPlantDto?.lastWateringAt!!)) {
mFocusListener?.onShowErrorMessage(resources.getString(R.string.message_already_watering_today))
} else if (UserDataManager.getInstance().userDTO?.totalWater!! < CONFIG_DAILY_WATER) {
mFocusListener?.onShowNeedWater()
@vietnt-uet
vietnt-uet / privacy.html
Last active October 7, 2021 04:21
Vacay Privacy Policy
Privacy Policy for Vacay
At https://letsvacay.com/, accessible from https://letsvacay.com/, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by https://letsvacay.com/ and how we use it.
If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us.
This Privacy Policy applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in https://letsvacay.com/. This policy is not applicable to any information collected offline or via channels other than this website. Our Privacy Policy was created with the help of the Free Privacy Policy Generator.
Consent
By using our website, you hereby consent to our Privacy Policy and agree to its terms.