SplashFragment: Build secure anonymous data when requested
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -173,7 +173,7 @@ class SplashFragment : BaseFragment(R.layout.fragment_splash) {
|
||||
binding.btnAnonymous.addOnClickListener {
|
||||
if (viewModel.liveData.value != AuthState.Fetching) {
|
||||
binding.btnAnonymous.updateProgress(true)
|
||||
viewModel.buildAnonymousAuthData()
|
||||
viewModel.buildSecureAnonymousAuthData()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ class AuthViewModel(application: Application) : BaseAndroidViewModel(application
|
||||
}
|
||||
}
|
||||
|
||||
private fun buildSecureAnonymousAuthData() {
|
||||
fun buildSecureAnonymousAuthData() {
|
||||
liveData.postValue(AuthState.Fetching)
|
||||
viewModelScope.launch(Dispatchers.IO) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user