Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
๐Ÿท๏ธ ๋‹‰๋„ค์ž„ ์„ค์ • | ์ง„์ž…์  ๋ถ„๊ธฐ ์„ค์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
moondev03 committed Aug 14, 2024
1 parent adbc752 commit ac903df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class MyPageFragment : BaseFragment<FragmentMypageBinding>(R.layout.fragment_myp
}

binding.btnChangeNickname.setOnClickListener {
(requireActivity() as MainActivity).replaceFragment(SignInNicknameFragment(), true)
(requireActivity() as MainActivity).replaceFragment(SignInNicknameFragment(false), true)
}

binding.btnLoadDiary.setOnClickListener {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import androidx.appcompat.content.res.AppCompatResources
import androidx.core.content.ContextCompat
import androidx.fragment.app.viewModels
import com.nabi.nabi.R
import com.nabi.nabi.base.BaseActivity
import com.nabi.nabi.base.BaseFragment
import com.nabi.nabi.base.NabiApplication.Companion.nickname
import com.nabi.nabi.databinding.FragmentSignNicknameBinding
Expand All @@ -25,7 +26,11 @@ class SignInNicknameFragment(
private val viewModel: SignNicknameViewModel by viewModels()

override fun initView() {
(requireActivity() as SignActivity).setStatusBarColor(R.color.white, false)
if(isSignUp) {
(requireActivity() as SignActivity).setStatusBarColor(R.color.white, false)
} else {
(requireActivity() as MainActivity).setStatusBarColor(R.color.white, false)
}

binding.etNick.filters = arrayOf(InputFilter { source, _, _, _, _, _ ->
val ps: Pattern = Pattern.compile("^[a-zA-Z0-9๊ฐ€-ํžฃใ„ฑ-ใ…Žใ…-ใ…ฃ\\u318D\\u119E\\u11A2\\u2022\\u2025a\\u00B7\\uFE55]+$")
Expand Down

0 comments on commit ac903df

Please sign in to comment.