From e5446589e8a46636781c7c6de55d32fedc4492e4 Mon Sep 17 00:00:00 2001 From: Sergio De la torre Date: Fri, 19 Apr 2024 09:55:08 +0200 Subject: [PATCH] =?UTF-8?q?refs=20#3520=20feat:silex=E2=86=92salix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fragment/ControladorViewModel.kt | 35 ------------------- .../feature/login/fragment/LoginFragment.kt | 2 ++ 2 files changed, 2 insertions(+), 35 deletions(-) diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/controlador/fragment/ControladorViewModel.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/controlador/fragment/ControladorViewModel.kt index a0f4ee70..88dedf13 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/controlador/fragment/ControladorViewModel.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/controlador/fragment/ControladorViewModel.kt @@ -4,7 +4,6 @@ import android.content.Context import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import es.verdnatura.domain.SalixCallback -import es.verdnatura.domain.SilexCallback import es.verdnatura.presentation.base.BaseViewModel import es.verdnatura.presentation.base.getMessageFromAllResponse import es.verdnatura.presentation.base.nameofFunction @@ -59,41 +58,7 @@ class ControladorViewModel(var context: Context) : BaseViewModel(context) { } fun collectionTicketGet(collectionFk: Int, sectorFk: Int, print: String, type: String) { - //Tarea 6276 collection_getTickets - if (type == "CHECKER") { getSales(collectionFk, false, type) - } else { - silex.collection_getTickets(collectionFk, sectorFk, print, type).enqueue(object : - SilexCallback(context) { - override fun onError(t: Throwable) { - _collectionTicketList.value = CollectionVO( - 0, - isError = true, - errorMessage = getMessageFromAllResponse(nameofFunction(this), t.message!!) - ) - } - - override fun onSuccess(response: Response) { - - if (response.body() != null) { - - _collectionTicketList.value = response.body()?.let { - it.map(contextApp) - } - - } else { - _collectionTicketList.value = CollectionVO( - 0, - isError = true, - errorMessage = getMessageFromAllResponse( - nameofFunction(this), - response.message() - ) - ) - } - } - }) - } } } diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginFragment.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginFragment.kt index b50ec751..c5442f4f 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginFragment.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginFragment.kt @@ -7,6 +7,7 @@ import android.content.pm.PackageManager import android.net.Uri import android.os.Build import android.provider.Settings +import android.view.View.GONE import android.view.View.VISIBLE import androidx.annotation.RequiresApi import androidx.datastore.preferences.core.stringPreferencesKey @@ -264,6 +265,7 @@ class LoginFragment(var imageUri: Uri?) : customNewForm = CustomDialogInputThreeValues(requireContext()).setTitle(getString(R.string.workFormAdd)) .setDescription(getString(R.string.workFormDescrip)) + customNewForm.setInputTextVisibility(GONE) customNewForm.setInfoTex( getString(R.string.name), getString(R.string.silexServer),