|
@@ -1,6 +1,7 @@
|
|
|
package com.fastest.pass.home.presentation.ui.fragment
|
|
|
|
|
|
import android.os.Bundle
|
|
|
+import android.util.Log
|
|
|
import android.view.LayoutInflater
|
|
|
import android.view.View
|
|
|
import android.view.ViewGroup
|
|
@@ -15,6 +16,7 @@ import androidx.compose.ui.res.colorResource
|
|
|
import androidx.fragment.app.viewModels
|
|
|
import com.fastest.pass.app.BaseFragment
|
|
|
import com.fastest.pass.R
|
|
|
+import com.fastest.pass.helpers.BasePreferenceHelper
|
|
|
import com.fastest.pass.home.presentation.ui.components.ClickType
|
|
|
import com.fastest.pass.home.presentation.ui.components.HomeScreen
|
|
|
import com.fastest.pass.home.presentation.viewmodels.HomeViewModel
|
|
@@ -31,6 +33,8 @@ class HomeFragment : BaseFragment() {
|
|
|
|
|
|
@Inject
|
|
|
lateinit var navigation: HomeNavigation
|
|
|
+ @Inject
|
|
|
+ lateinit var basePreferenceHelper: BasePreferenceHelper
|
|
|
|
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
|
super.onCreate(savedInstanceState)
|
|
@@ -53,6 +57,13 @@ class HomeFragment : BaseFragment() {
|
|
|
.background(colorResource(id = R.color.home_background_color))
|
|
|
.padding(paddingValues.calculateBottomPadding())
|
|
|
) {
|
|
|
+ val userinfo = basePreferenceHelper.getUserInfo()
|
|
|
+ val id = userinfo?.id
|
|
|
+ val email = userinfo?.email
|
|
|
+
|
|
|
+ val saltKey = "$id$email"
|
|
|
+ Log.d("saltKey", "saltKey = $saltKey")
|
|
|
+
|
|
|
HomeScreen { clickType ->
|
|
|
when (clickType) {
|
|
|
ClickType.GOTO_ADD_NEW_ITEMS -> {
|