Skip to content

Commit

Permalink
[FEAT] RealNameFragment ExposureLogging (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
KxxHyoRim committed Nov 13, 2023
1 parent 53b47da commit da9cb8c
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
package com.lgtm.android.auth.ui.signup.reviewee

import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.fragment.app.activityViewModels
import com.lgtm.android.auth.R
import com.lgtm.android.auth.databinding.FragmentRealNameBinding
import com.lgtm.android.auth.ui.SignInActivity
import com.lgtm.android.auth.ui.signup.SignUpViewModel
import com.lgtm.android.common_ui.base.BaseFragment
import com.lgtm.android.common_ui.util.NetworkState
import com.lgtm.android.common_ui.util.setOnThrottleClickListener
import com.lgtm.domain.logging.SwmCommonLoggingScheme


class RealNameFragment : BaseFragment<FragmentRealNameBinding>(R.layout.fragment_real_name) {
Expand All @@ -26,6 +25,7 @@ class RealNameFragment : BaseFragment<FragmentRealNameBinding>(R.layout.fragment
onRealNameChanged()
setupCompleteButtonListener()
observeSignUpStatus()
shotRealNameExposureLogging()
}

private fun setupViewModel() {
Expand Down Expand Up @@ -75,9 +75,13 @@ class RealNameFragment : BaseFragment<FragmentRealNameBinding>(R.layout.fragment
lgtmNavigator.navigateToMain(requireContext())
}

private fun navigateToSignInActivity() {
startActivity(Intent(requireContext(), SignInActivity::class.java))
private fun shotRealNameExposureLogging() {
val scheme = SwmCommonLoggingScheme.Builder()
.setEventLogName("realNameExposure")
.setScreenName(this.javaClass)
.setLogData(mapOf("signUpStep" to 6, "juniorStep" to 2))
.build()
viewModel.shotSwmLogging(scheme)
}


}

0 comments on commit da9cb8c

Please sign in to comment.