Skip to content

Commit

Permalink
refactor: 잘못된 네이밍 변경, collect 함수화, 리포맷
Browse files Browse the repository at this point in the history
  • Loading branch information
ootr47 committed Feb 28, 2024
1 parent e6c235e commit 45d90e5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import dagger.hilt.android.AndroidEntryPoint
class FindPasswordActivity : AppCompatActivity() {

private lateinit var binding: ActivityFindPasswordBinding

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,16 @@ class ResetPasswordFragment : Fragment() {
}

initView()
initCollector()
}

private fun initView() {
binding.btnResetPasswordBack.setOnClickListener {
findNavController().navigateUp()
}
}

private fun initCollector() {
viewLifecycleOwner.repeatOnStarted {
resetPasswordViewModel.event.collect { event ->
when (event) {
Expand Down Expand Up @@ -75,12 +84,6 @@ class ResetPasswordFragment : Fragment() {
}
}

private fun initView() {
binding.btnResetPasswordBack.setOnClickListener {
findNavController().navigateUp()
}
}

override fun onDestroyView() {
super.onDestroyView()
_binding = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/tv_reset_password_content"
android:id="@+id/tv_email_verification_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="48dp"
Expand All @@ -67,7 +67,7 @@
app:helperText=" "
app:layout_constraintEnd_toStartOf="@id/btn_email_verification_verify"
app:layout_constraintStart_toEndOf="@id/gl_vertical_start"
app:layout_constraintTop_toBottomOf="@id/tv_reset_password_content">
app:layout_constraintTop_toBottomOf="@id/tv_email_verification_content">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/tiet_email_verification_email"
Expand Down

0 comments on commit 45d90e5

Please sign in to comment.