diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/main/activity/MainActivity.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/main/activity/MainActivity.kt index 8c7226da..b6ea729a 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/main/activity/MainActivity.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/main/activity/MainActivity.kt @@ -3,6 +3,7 @@ package es.verdnatura.presentation.view.feature.main.activity //Tarea #4815 import PhotosFragment +import android.content.Context import android.content.SharedPreferences import android.media.MediaPlayer import android.net.Uri @@ -12,6 +13,7 @@ import androidx.core.content.ContextCompat import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager import com.google.android.material.bottomnavigation.LabelVisibilityMode.LABEL_VISIBILITY_UNLABELED +import es.verdnatura.MobileApplication import es.verdnatura.R import es.verdnatura.databinding.ActivityMainBinding import es.verdnatura.domain.ConstAndValues.MAINACTIVITY @@ -114,12 +116,17 @@ class MainActivity : BaseActivity(), OnPasillerosItemClickL if (extras != null && extras.containsKey("menu")) { comeFromDelivery = true val option = extras.getString("menu") - saveDataInt("USERFK", extras.getString("userfk")!!.toInt()) + /*saveDataInt("USERFK", extras.getString("userfk")!!.toInt()) saveUserAccesPref( extras.getString("user").toString(), extras.getString("password").toString() - ) + )*/ + // A borrar toda esta parte cuando está oficialmente delivery en picking + var app= application as MobileApplication + app.userName= extras.getString("user").toString() + app.userId= extras.getString("userfk").toString().toInt() + app.userPassword= extras.getString("password").toString() when (option) { "log" -> onPasillerosItemClickListener(