refs #5613
This commit is contained in:
parent
b4530e2cf2
commit
6f3689651a
|
@ -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<ActivityMainBinding>(), 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(
|
||||
|
|
Loading…
Reference in New Issue