Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manage sync button UI state #70

Open
wants to merge 1 commit into
base: client-dev
Choose a base branch
from

Conversation

anuragshukla06
Copy link
Collaborator

No description provided.

import com.microsoft.research.karya.utils.extensions.gone
import com.microsoft.research.karya.utils.extensions.observe
import com.microsoft.research.karya.utils.extensions.viewBinding
import com.microsoft.research.karya.utils.extensions.visible
import dagger.hilt.android.AndroidEntryPoint
import javax.inject.Inject
import kotlinx.android.synthetic.main.fragment_dashboard.*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do not import androidx synthetics.

@@ -84,6 +87,7 @@ class DashboardFragment : Fragment(R.layout.fragment_dashboard) {

private fun showSuccessUi(data: DashboardStateSuccess) {
hideLoading()
syncCv.enable()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update this to use ViewBinding

@@ -98,10 +102,12 @@ class DashboardFragment : Fragment(R.layout.fragment_dashboard) {

private fun showErrorUi(throwable: Throwable) {
hideLoading()
syncCv.enable()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update this to use ViewBinding

}

private fun showLoadingUi() {
showLoading()
syncCv.disable()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update this to use ViewBinding

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