-
Notifications
You must be signed in to change notification settings - Fork 12
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
base: client-dev
Are you sure you want to change the base?
Conversation
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.* |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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
No description provided.