Skip to content

Commit

Permalink
delete/#5: 주석 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Apr 18, 2024
1 parent 2420f0b commit 4dd9b1b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion app/src/main/java/com/sopt/now/HomeListAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import androidx.recyclerview.widget.RecyclerView
import java.lang.RuntimeException

class HomeListAdapter() : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
// 임시의 빈 리스트
private var homeListList: List<HomeList> = emptyList()
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder {
val adapterLayout : View?
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/java/com/sopt/now/LoginActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@ class LoginActivity : AppCompatActivity() {
binding = ActivityLoginBinding.inflate(layoutInflater)
setContentView(binding.root)

//회원가입에서 사용자 정보 받아옴
getUser()

//회원가입 페이지로 넘어가기
moveToSignUp()

}
private fun getUser() {
var id = ""
Expand All @@ -45,7 +42,6 @@ class LoginActivity : AppCompatActivity() {
private fun moveToSignUp(){
binding.btnLoginSignIn.setOnClickListener {
val intent = Intent(this, SignUpActivity::class.java)
//회원가입 데이터를 받아오기 위해 startActivity가 아닌 resultLauncher사용
resultLauncher.launch(intent)
}
}
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/sopt/now/SearchFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import android.view.View
import android.view.ViewGroup

class SearchFragment : Fragment() {

override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/java/com/sopt/now/SignUpActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class SignUpActivity : AppCompatActivity() {
binding = ActivitySignUpBinding.inflate(layoutInflater)
setContentView(binding.root)

//사용자 정보 가져오기
getUserInfo()
}
private fun getUserInfo() {
Expand All @@ -30,13 +29,11 @@ class SignUpActivity : AppCompatActivity() {
private fun sendUserInfo(id:String,pw:String,nick:String,etc:String){
if(isSignUpAvailable(id,pw,nick,etc)) {
val intent= Intent(this,LoginActivity::class.java)
//로그인 액티비티로 데이터를 보냄
intent.putExtra("id",id).putExtra("pw",pw).putExtra("nick",nick)
setResult(RESULT_OK,intent)
finish()
}
}
//회원가입 가능한지 검사
private fun isSignUpAvailable(id:String,pw:String,nick:String,etc:String):Boolean {
var signUpBool = false
val message = when {
Expand All @@ -54,7 +51,6 @@ class SignUpActivity : AppCompatActivity() {
return signUpBool
}
companion object {
//회원가입 조건 상수화
const val MIN_ID_LENGTH = 6
const val MAX_ID_LENGTH = 10
const val MIN_PW_LENGTH = 8
Expand Down

0 comments on commit 4dd9b1b

Please sign in to comment.