신기성

exception and profil link

...@@ -26,7 +26,14 @@ class InputProfilFirstTwoActivity : AppCompatActivity() { ...@@ -26,7 +26,14 @@ class InputProfilFirstTwoActivity : AppCompatActivity() {
26 26
27 27
28 var birthdateinput=findViewById<EditText>(R.id.editText).text.toString() 28 var birthdateinput=findViewById<EditText>(R.id.editText).text.toString()
29 - var birthdateint=birthdateinput.toInt() 29 + var birthdateint = 0
30 + if (birthdateinput == "") {
31 + birthdateint = 0
32 + }
33 + else {
34 + birthdateint = birthdateinput.toInt()
35 + }
36 +
30 if ((2019-birthdateint)<19){ 37 if ((2019-birthdateint)<19){
31 editor.putInt("c1_2",1) 38 editor.putInt("c1_2",1)
32 editor.commit() 39 editor.commit()
......
...@@ -101,7 +101,7 @@ class InputProfilFourthOneActivity : AppCompatActivity() { ...@@ -101,7 +101,7 @@ class InputProfilFourthOneActivity : AppCompatActivity() {
101 editor.putInt("c7_31",1) 101 editor.putInt("c7_31",1)
102 editor.commit() 102 editor.commit()
103 } 103 }
104 - var intent = Intent(this, InputProfilFirstTwoActivity::class.java) 104 + var intent = Intent(this, InputProfilFourthTwoActivity::class.java)
105 startActivity(intent) 105 startActivity(intent)
106 } 106 }
107 } 107 }
......
...@@ -81,7 +81,7 @@ class SignUpActivity : AppCompatActivity() { ...@@ -81,7 +81,7 @@ class SignUpActivity : AppCompatActivity() {
81 cnt ++ 81 cnt ++
82 82
83 if(user!=null){ 83 if(user!=null){
84 - var intent = Intent(this, MainActivity::class.java) 84 + var intent = Intent(this, InputProfilFirstOneActivity::class.java)
85 startActivity(intent) 85 startActivity(intent)
86 } 86 }
87 } else { 87 } else {
......