Showing
25 changed files
with
594 additions
and
24 deletions
... | @@ -190,6 +190,9 @@ class InputProfilFifthFourActivity : AppCompatActivity() { | ... | @@ -190,6 +190,9 @@ class InputProfilFifthFourActivity : AppCompatActivity() { |
190 | } | 190 | } |
191 | 191 | ||
192 | nextButton.setOnClickListener { | 192 | nextButton.setOnClickListener { |
193 | + editor.remove("fifth_four") | ||
194 | + editor.remove("fifth_four_editText1") | ||
195 | + editor.commit() | ||
193 | 196 | ||
194 | if((editText1.text.toString()!="")){editor.putString("fifth_four_editText1",editText1.text.toString());editor.putString("fifth_four","done");editor.commit()} | 197 | if((editText1.text.toString()!="")){editor.putString("fifth_four_editText1",editText1.text.toString());editor.putString("fifth_four","done");editor.commit()} |
195 | 198 | ||
... | @@ -210,6 +213,59 @@ class InputProfilFifthFourActivity : AppCompatActivity() { | ... | @@ -210,6 +213,59 @@ class InputProfilFifthFourActivity : AppCompatActivity() { |
210 | editor.putInt("c15_1",1); editor.commit() | 213 | editor.putInt("c15_1",1); editor.commit() |
211 | editor.putInt("c16_1",1); editor.commit() | 214 | editor.putInt("c16_1",1); editor.commit() |
212 | 215 | ||
216 | + sendToken() | ||
217 | + val user=firebaseAuth?.currentUser!!.uid | ||
218 | + Log.d("test:", user.toString()) | ||
219 | + | ||
220 | + val cat_1=listOf("c1_1","c1_2","c1_3") | ||
221 | + val cat_2=listOf("c2_1","c2_2","c2_3","c2_4","c2_5","c2_6","c2_7") | ||
222 | + val cat_3=listOf("c3_1","c3_2","c3_3") | ||
223 | + val cat_4=listOf("c4_1","c4_2","c4_3","c4_4","c4_5","c4_6","c4_7","c4_8","c4_9","c4_10","c4_11") | ||
224 | + val cat_5=listOf("c5_1","c5_2","c5_3","c5_4","c5_5","c5_6","c5_7","c5_8","c5_9") | ||
225 | + val cat_6=listOf("c6_1","c6_2","c6_3","c6_4","c6_5","c6_6","c6_7") | ||
226 | + val cat_7=listOf("c7_1","c7_2","c7_3") | ||
227 | + val cat_8=listOf("c8_1","c8_2","c8_3","c8_4","c8_5","c8_6","c8_7","c8_8","c8_9","c8_10","c8_11","c8_12","c8_13","c8_14","c8_15","c8_16","c8_17") | ||
228 | + val cat_9=listOf("c9_1","c9_2","c9_3","c9_4","c9_5","c9_6","c9_7","c9_8","c9_9","c9_10","c9_11","c9_12","c9_13","c9_14","c9_15","c9_16","c9_17","c9_18","c9_19") | ||
229 | + val cat_10=listOf("c10_1","c10_2","c10_3","c10_4","c10_5","c10_6","c10_7","c10_8","c10_9","c10_10","c10_11","c10_12","c10_13","c10_14","c10_15","c10_16","c10_17","c10_18") | ||
230 | + val cat_11=listOf("c11_1","c11_2","c11_3","c11_4","c11_5","c11_6","c11_7","c11_8","c11_9","c11_10","c11_11","c11_12","c11_13","c11_14","c11_15","c11_16","c11_17","c11_18") | ||
231 | + val cat_12=listOf("c12_1","c12_100","c12_101","c12_102","c12_103","c12_104","c12_105","c12_106","c12_107","c12_108","c12_109","c12_110","c12_111","c12_112","c12_113","c12_114","c12_115","c12_116","c12_117","c12_118","c12_119","c12_120","c12_121","c12_122","c12_123","c12_124","c12_125","c12_126","c12_127","c12_128","c12_129","c12_130","c12_131","c12_132","c12_133","c12_134","c12_135","c12_136","c12_137","c12_138","c12_139","c12_140","c12_141","c12_142","c12_143","c12_144","c12_145","c12_146","c12_147","c12_148","c12_149","c12_150","c12_151","c12_152","c12_153","c12_154","c12_155","c12_156","c12_157","c12_158","c12_159","c12_160","c12_161","c12_162","c12_163","c12_164","c12_165","c12_166","c12_167","c12_168","c12_169","c12_170","c12_171","c12_172","c12_173","c12_174","c12_175","c12_176","c12_177","c12_178","c12_179","c12_180","c12_181","c12_182","c12_183","c12_184","c12_185","c12_186","c12_187","c12_188","c12_189","c12_190","c12_191","c12_192","c12_193","c12_194","c12_195","c12_196","c12_197","c12_198","c12_199","c12_200","c12_201","c12_202","c12_203","c12_204","c12_205","c12_206","c12_207","c12_208","c12_209","c12_210","c12_211","c12_212","c12_213","c12_214","c12_215","c12_216","c12_217","c12_218","c12_219","c12_220","c12_221","c12_222","c12_223","c12_224","c12_225","c12_226","c12_227","c12_228","c12_229","c12_230","c12_231","c12_232","c12_233","c12_234","c12_235","c12_236","c12_237","c12_238","c12_239","c12_240","c12_241","c12_242","c12_243","c12_244","c12_245","c12_246","c12_247","c12_248","c12_249","c12_250","c12_251","c12_252","c12_253","c12_254","c12_255","c12_256","c12_257","c12_258","c12_259","c12_260","c12_261","c12_262","c12_263","c12_264","c12_265","c12_266","c12_267","c12_268","c12_269","c12_270","c12_271","c12_272","c12_273","c12_274","c12_275","c12_276","c12_277","c12_278","c12_279","c12_280","c12_281","c12_282","c12_283","c12_284","c12_285","c12_286","c12_287","c12_288","c12_289","c12_290","c12_291","c12_292","c12_293","c12_294","c12_295","c12_296","c12_297","c12_298","c12_299","c12_300","c12_301","c12_302","c12_303","c12_304","c12_305","c12_306","c12_307","c12_308","c12_309","c12_310","c12_311","c12_312","c12_313","c12_314","c12_315","c12_316","c12_317","c12_318","c12_319","c12_320","c12_321","c12_322","c12_323","c12_324","c12_325","c12_326","c12_327","c12_328","c12_329","c12_330","c12_331","c12_332","c12_333","c12_334","c12_335","c12_336","c12_337","c12_338","c12_339","c12_340","c12_341","c12_342","c12_343","c12_344","c12_345","c12_346","c12_347","c12_348","c12_349","c12_350") | ||
232 | + val cat_13=listOf("c13_1","c13_2","c13_3") | ||
233 | + val cat_14=listOf("c14_1","c14_2","c14_3") | ||
234 | + val cat_15=listOf("c15_1","c15_2","c15_3") | ||
235 | + val cat_16=listOf("c16_1","c16_2","c16_3","c16_4","c16_5","c16_6","c16_7") | ||
236 | + | ||
237 | + val cat_list=mutableListOf<String>() | ||
238 | + cat_list.addAll(cat_1) | ||
239 | + cat_list.addAll(cat_2) | ||
240 | + cat_list.addAll(cat_3) | ||
241 | + cat_list.addAll(cat_4) | ||
242 | + cat_list.addAll(cat_5) | ||
243 | + cat_list.addAll(cat_6) | ||
244 | + cat_list.addAll(cat_7) | ||
245 | + cat_list.addAll(cat_8) | ||
246 | + cat_list.addAll(cat_9) | ||
247 | + cat_list.addAll(cat_10) | ||
248 | + cat_list.addAll(cat_11) | ||
249 | + cat_list.addAll(cat_12) | ||
250 | + cat_list.addAll(cat_13) | ||
251 | + cat_list.addAll(cat_14) | ||
252 | + cat_list.addAll(cat_15) | ||
253 | + cat_list.addAll(cat_16) | ||
254 | + | ||
255 | + var user_topic="" | ||
256 | + for(item in cat_list){if(prof.getInt(item,3)==1){user_topic=user_topic+item}} | ||
257 | + | ||
258 | + if(prof.getString("existing_topic","none")!=user_topic){ | ||
259 | + FirebaseMessaging.getInstance().unsubscribeFromTopic(prof.getString("existing_topic","none").toString()) | ||
260 | + FirebaseMessaging.getInstance().subscribeToTopic(user_topic).addOnCompleteListener { task -> | ||
261 | + if (!task.isSuccessful) { } // 성공 | ||
262 | + } | ||
263 | + writeNewUser(user_topic) // db에 쓰기 | ||
264 | + editor.putString("existing_topic",user_topic) | ||
265 | + editor.commit() | ||
266 | + }else{ | ||
267 | + | ||
268 | + } | ||
213 | var intent = Intent(this, SignInActivity::class.java) | 269 | var intent = Intent(this, SignInActivity::class.java) |
214 | startActivity(intent) | 270 | startActivity(intent) |
215 | } | 271 | } | ... | ... |
... | @@ -175,6 +175,10 @@ class InputProfilFifthOneActivity : AppCompatActivity() { | ... | @@ -175,6 +175,10 @@ class InputProfilFifthOneActivity : AppCompatActivity() { |
175 | } | 175 | } |
176 | 176 | ||
177 | nextButton.setOnClickListener { | 177 | nextButton.setOnClickListener { |
178 | + editor.remove("fifth_one") | ||
179 | + editor.remove("fifth_one_editText1") | ||
180 | + editor.remove("fifth_one_editText2") | ||
181 | + editor.commit() | ||
178 | 182 | ||
179 | if((editText1.text.toString()!="")&&(editText2.text.toString()!="")){editor.putString("fifth_one_editText1",editText1.text.toString());editor.putString("fifth_one_editText2",editText2.text.toString());editor.commit();editor.putString("fifth_one","done");editor.commit()} | 183 | if((editText1.text.toString()!="")&&(editText2.text.toString()!="")){editor.putString("fifth_one_editText1",editText1.text.toString());editor.putString("fifth_one_editText2",editText2.text.toString());editor.commit();editor.putString("fifth_one","done");editor.commit()} |
180 | var intent = Intent(this, InputProfilFifthTwoActivity::class.java) | 184 | var intent = Intent(this, InputProfilFifthTwoActivity::class.java) | ... | ... |
... | @@ -185,6 +185,11 @@ class InputProfilFifthThreeActivity : AppCompatActivity() { | ... | @@ -185,6 +185,11 @@ class InputProfilFifthThreeActivity : AppCompatActivity() { |
185 | } | 185 | } |
186 | 186 | ||
187 | nextButton.setOnClickListener { | 187 | nextButton.setOnClickListener { |
188 | + editor.remove("fifth_three") | ||
189 | + editor.remove("fifth_three_editText1") | ||
190 | + editor.remove("fifth_three_editText2") | ||
191 | + editor.remove("fifth_three_editText3") | ||
192 | + editor.commit() | ||
188 | if((editText1.text.toString()!="")&&(editText2.text.toString()!="")&&(editText3.text.toString()!="")){editor.putString("fifth_three_editText1",editText1.text.toString());editor.putString("fifth_three_editText2",editText2.text.toString());editor.putString("fifth_three_editText3",editText3.text.toString());editor.commit();editor.putString("fifth_three","done");editor.commit()} | 193 | if((editText1.text.toString()!="")&&(editText2.text.toString()!="")&&(editText3.text.toString()!="")){editor.putString("fifth_three_editText1",editText1.text.toString());editor.putString("fifth_three_editText2",editText2.text.toString());editor.putString("fifth_three_editText3",editText3.text.toString());editor.commit();editor.putString("fifth_three","done");editor.commit()} |
189 | 194 | ||
190 | var intent = Intent(this, InputProfilFifthFourActivity::class.java) | 195 | var intent = Intent(this, InputProfilFifthFourActivity::class.java) | ... | ... |
... | @@ -224,6 +224,15 @@ class InputProfilFifthTwoActivity : AppCompatActivity() { | ... | @@ -224,6 +224,15 @@ class InputProfilFifthTwoActivity : AppCompatActivity() { |
224 | } | 224 | } |
225 | 225 | ||
226 | nextButton.setOnClickListener { | 226 | nextButton.setOnClickListener { |
227 | + editor.remove("fifth_two") | ||
228 | + editor.remove("fifth_two_editText1") | ||
229 | + editor.remove("fifth_two_jikjaangButton") | ||
230 | + editor.remove("fifth_two_editText1") | ||
231 | + editor.remove("fifth_two_jiyeokButton") | ||
232 | + editor.remove("fifth_two_pibooyaangjikjaangButton") | ||
233 | + editor.remove("fifth_two_pibooyaangjiyeokButton") | ||
234 | + editor.remove("fifth_two_uieryoButton") | ||
235 | + editor.commit() | ||
227 | if(jikjaangButton.isChecked&&(editText1.text.toString()!="")){editor.putString("fifth_two_editText1",editText1.text.toString());editor.putString("fifth_two_jikjaangButton","isChecked");editor.putString("fifth_two","done");editor.commit()} | 236 | if(jikjaangButton.isChecked&&(editText1.text.toString()!="")){editor.putString("fifth_two_editText1",editText1.text.toString());editor.putString("fifth_two_jikjaangButton","isChecked");editor.putString("fifth_two","done");editor.commit()} |
228 | if(jiyeokButton.isChecked&&(editText1.text.toString()!="")){editor.putString("fifth_two_editText1",editText1.text.toString());editor.putString("fifth_two_jiyeokButton","isChecked");editor.putString("fifth_two","done");editor.commit()} | 237 | if(jiyeokButton.isChecked&&(editText1.text.toString()!="")){editor.putString("fifth_two_editText1",editText1.text.toString());editor.putString("fifth_two_jiyeokButton","isChecked");editor.putString("fifth_two","done");editor.commit()} |
229 | if(pibooyaangjikjaangButton.isChecked){editor.putString("fifth_two_pibooyaangjikjaangButton","isChecked");editor.putString("fifth_two","done");editor.commit()} | 238 | if(pibooyaangjikjaangButton.isChecked){editor.putString("fifth_two_pibooyaangjikjaangButton","isChecked");editor.putString("fifth_two","done");editor.commit()} | ... | ... |
... | @@ -149,6 +149,10 @@ class InputProfilFirstFiveActivity : AppCompatActivity() { | ... | @@ -149,6 +149,10 @@ class InputProfilFirstFiveActivity : AppCompatActivity() { |
149 | } | 149 | } |
150 | 150 | ||
151 | nextButton.setOnClickListener { | 151 | nextButton.setOnClickListener { |
152 | + editor.remove("first_five") | ||
153 | + editor.remove("c1_2") | ||
154 | + editor.remove("c1_3") | ||
155 | + editor.commit() | ||
152 | 156 | ||
153 | 157 | ||
154 | 158 | ... | ... |
... | @@ -217,6 +217,277 @@ class InputProfilFirstFourActivity : AppCompatActivity() { | ... | @@ -217,6 +217,277 @@ class InputProfilFirstFourActivity : AppCompatActivity() { |
217 | } | 217 | } |
218 | 218 | ||
219 | nextButton.setOnClickListener { | 219 | nextButton.setOnClickListener { |
220 | + editor.remove("first_four") | ||
221 | + editor.remove("c11_2") | ||
222 | + editor.remove("c11_3") | ||
223 | + editor.remove("c11_4") | ||
224 | + editor.remove("c11_5") | ||
225 | + editor.remove("c11_6") | ||
226 | + editor.remove("c11_7") | ||
227 | + editor.remove("c11_8") | ||
228 | + editor.remove("c11_9") | ||
229 | + editor.remove("c11_10") | ||
230 | + editor.remove("c11_11") | ||
231 | + editor.remove("c11_12") | ||
232 | + editor.remove("c11_13") | ||
233 | + editor.remove("c11_14") | ||
234 | + editor.remove("c11_15") | ||
235 | + editor.remove("c11_16") | ||
236 | + editor.remove("c11_17") | ||
237 | + editor.remove("c11_18") | ||
238 | + editor.remove("c12_100") | ||
239 | + editor.remove("c12_101") | ||
240 | + editor.remove("c12_102") | ||
241 | + editor.remove("c12_103") | ||
242 | + editor.remove("c12_104") | ||
243 | + editor.remove("c12_105") | ||
244 | + editor.remove("c12_106") | ||
245 | + editor.remove("c12_107") | ||
246 | + editor.remove("c12_108") | ||
247 | + editor.remove("c12_109") | ||
248 | + editor.remove("c12_110") | ||
249 | + editor.remove("c12_111") | ||
250 | + editor.remove("c12_112") | ||
251 | + editor.remove("c12_113") | ||
252 | + editor.remove("c12_114") | ||
253 | + editor.remove("c12_115") | ||
254 | + editor.remove("c12_116") | ||
255 | + editor.remove("c12_117") | ||
256 | + editor.remove("c12_118") | ||
257 | + editor.remove("c12_119") | ||
258 | + editor.remove("c12_120") | ||
259 | + editor.remove("c12_121") | ||
260 | + editor.remove("c12_122") | ||
261 | + editor.remove("c12_123") | ||
262 | + editor.remove("c12_124") | ||
263 | + editor.remove("c12_125") | ||
264 | + editor.remove("c12_126") | ||
265 | + editor.remove("c12_127") | ||
266 | + editor.remove("c12_128") | ||
267 | + editor.remove("c12_129") | ||
268 | + editor.remove("c12_130") | ||
269 | + editor.remove("c12_131") | ||
270 | + editor.remove("c12_132") | ||
271 | + editor.remove("c12_133") | ||
272 | + editor.remove("c12_134") | ||
273 | + editor.remove("c12_135") | ||
274 | + editor.remove("c12_136") | ||
275 | + editor.remove("c12_137") | ||
276 | + editor.remove("c12_138") | ||
277 | + editor.remove("c12_139") | ||
278 | + editor.remove("c12_140") | ||
279 | + editor.remove("c12_141") | ||
280 | + editor.remove("c12_142") | ||
281 | + editor.remove("c12_143") | ||
282 | + editor.remove("c12_144") | ||
283 | + editor.remove("c12_145") | ||
284 | + editor.remove("c12_146") | ||
285 | + editor.remove("c12_147") | ||
286 | + editor.remove("c12_148") | ||
287 | + editor.remove("c12_149") | ||
288 | + editor.remove("c12_150") | ||
289 | + editor.remove("c12_151") | ||
290 | + editor.remove("c12_152") | ||
291 | + editor.remove("c12_153") | ||
292 | + editor.remove("c12_154") | ||
293 | + editor.remove("c12_155") | ||
294 | + editor.remove("c12_156") | ||
295 | + editor.remove("c12_157") | ||
296 | + editor.remove("c12_158") | ||
297 | + editor.remove("c12_159") | ||
298 | + editor.remove("c12_160") | ||
299 | + editor.remove("c12_161") | ||
300 | + editor.remove("c12_162") | ||
301 | + editor.remove("c12_163") | ||
302 | + editor.remove("c12_164") | ||
303 | + editor.remove("c12_165") | ||
304 | + editor.remove("c12_166") | ||
305 | + editor.remove("c12_167") | ||
306 | + editor.remove("c12_168") | ||
307 | + editor.remove("c12_169") | ||
308 | + editor.remove("c12_170") | ||
309 | + editor.remove("c12_171") | ||
310 | + editor.remove("c12_172") | ||
311 | + editor.remove("c12_173") | ||
312 | + editor.remove("c12_174") | ||
313 | + editor.remove("c12_175") | ||
314 | + editor.remove("c12_176") | ||
315 | + editor.remove("c12_177") | ||
316 | + editor.remove("c12_178") | ||
317 | + editor.remove("c12_179") | ||
318 | + editor.remove("c12_180") | ||
319 | + editor.remove("c12_181") | ||
320 | + editor.remove("c12_182") | ||
321 | + editor.remove("c12_183") | ||
322 | + editor.remove("c12_184") | ||
323 | + editor.remove("c12_185") | ||
324 | + editor.remove("c12_186") | ||
325 | + editor.remove("c12_187") | ||
326 | + editor.remove("c12_188") | ||
327 | + editor.remove("c12_189") | ||
328 | + editor.remove("c12_190") | ||
329 | + editor.remove("c12_191") | ||
330 | + editor.remove("c12_192") | ||
331 | + editor.remove("c12_193") | ||
332 | + editor.remove("c12_194") | ||
333 | + editor.remove("c12_195") | ||
334 | + editor.remove("c12_196") | ||
335 | + editor.remove("c12_197") | ||
336 | + editor.remove("c12_198") | ||
337 | + editor.remove("c12_199") | ||
338 | + editor.remove("c12_200") | ||
339 | + editor.remove("c12_201") | ||
340 | + editor.remove("c12_202") | ||
341 | + editor.remove("c12_203") | ||
342 | + editor.remove("c12_204") | ||
343 | + editor.remove("c12_205") | ||
344 | + editor.remove("c12_206") | ||
345 | + editor.remove("c12_207") | ||
346 | + editor.remove("c12_208") | ||
347 | + editor.remove("c12_209") | ||
348 | + editor.remove("c12_210") | ||
349 | + editor.remove("c12_211") | ||
350 | + editor.remove("c12_212") | ||
351 | + editor.remove("c12_213") | ||
352 | + editor.remove("c12_214") | ||
353 | + editor.remove("c12_215") | ||
354 | + editor.remove("c12_216") | ||
355 | + editor.remove("c12_217") | ||
356 | + editor.remove("c12_218") | ||
357 | + editor.remove("c12_219") | ||
358 | + editor.remove("c12_220") | ||
359 | + editor.remove("c12_221") | ||
360 | + editor.remove("c12_222") | ||
361 | + editor.remove("c12_223") | ||
362 | + editor.remove("c12_224") | ||
363 | + editor.remove("c12_225") | ||
364 | + editor.remove("c12_226") | ||
365 | + editor.remove("c12_227") | ||
366 | + editor.remove("c12_228") | ||
367 | + editor.remove("c12_229") | ||
368 | + editor.remove("c12_230") | ||
369 | + editor.remove("c12_231") | ||
370 | + editor.remove("c12_232") | ||
371 | + editor.remove("c12_233") | ||
372 | + editor.remove("c12_234") | ||
373 | + editor.remove("c12_235") | ||
374 | + editor.remove("c12_236") | ||
375 | + editor.remove("c12_237") | ||
376 | + editor.remove("c12_238") | ||
377 | + editor.remove("c12_239") | ||
378 | + editor.remove("c12_240") | ||
379 | + editor.remove("c12_241") | ||
380 | + editor.remove("c12_242") | ||
381 | + editor.remove("c12_243") | ||
382 | + editor.remove("c12_244") | ||
383 | + editor.remove("c12_245") | ||
384 | + editor.remove("c12_246") | ||
385 | + editor.remove("c12_247") | ||
386 | + editor.remove("c12_248") | ||
387 | + editor.remove("c12_249") | ||
388 | + editor.remove("c12_250") | ||
389 | + editor.remove("c12_251") | ||
390 | + editor.remove("c12_252") | ||
391 | + editor.remove("c12_253") | ||
392 | + editor.remove("c12_254") | ||
393 | + editor.remove("c12_255") | ||
394 | + editor.remove("c12_256") | ||
395 | + editor.remove("c12_257") | ||
396 | + editor.remove("c12_258") | ||
397 | + editor.remove("c12_259") | ||
398 | + editor.remove("c12_260") | ||
399 | + editor.remove("c12_261") | ||
400 | + editor.remove("c12_262") | ||
401 | + editor.remove("c12_263") | ||
402 | + editor.remove("c12_264") | ||
403 | + editor.remove("c12_265") | ||
404 | + editor.remove("c12_266") | ||
405 | + editor.remove("c12_267") | ||
406 | + editor.remove("c12_268") | ||
407 | + editor.remove("c12_269") | ||
408 | + editor.remove("c12_270") | ||
409 | + editor.remove("c12_271") | ||
410 | + editor.remove("c12_272") | ||
411 | + editor.remove("c12_273") | ||
412 | + editor.remove("c12_274") | ||
413 | + editor.remove("c12_275") | ||
414 | + editor.remove("c12_276") | ||
415 | + editor.remove("c12_277") | ||
416 | + editor.remove("c12_278") | ||
417 | + editor.remove("c12_279") | ||
418 | + editor.remove("c12_280") | ||
419 | + editor.remove("c12_281") | ||
420 | + editor.remove("c12_282") | ||
421 | + editor.remove("c12_283") | ||
422 | + editor.remove("c12_284") | ||
423 | + editor.remove("c12_285") | ||
424 | + editor.remove("c12_286") | ||
425 | + editor.remove("c12_287") | ||
426 | + editor.remove("c12_288") | ||
427 | + editor.remove("c12_289") | ||
428 | + editor.remove("c12_290") | ||
429 | + editor.remove("c12_291") | ||
430 | + editor.remove("c12_292") | ||
431 | + editor.remove("c12_293") | ||
432 | + editor.remove("c12_294") | ||
433 | + editor.remove("c12_295") | ||
434 | + editor.remove("c12_296") | ||
435 | + editor.remove("c12_297") | ||
436 | + editor.remove("c12_298") | ||
437 | + editor.remove("c12_299") | ||
438 | + editor.remove("c12_300") | ||
439 | + editor.remove("c12_301") | ||
440 | + editor.remove("c12_302") | ||
441 | + editor.remove("c12_303") | ||
442 | + editor.remove("c12_304") | ||
443 | + editor.remove("c12_305") | ||
444 | + editor.remove("c12_306") | ||
445 | + editor.remove("c12_307") | ||
446 | + editor.remove("c12_308") | ||
447 | + editor.remove("c12_309") | ||
448 | + editor.remove("c12_310") | ||
449 | + editor.remove("c12_311") | ||
450 | + editor.remove("c12_312") | ||
451 | + editor.remove("c12_313") | ||
452 | + editor.remove("c12_314") | ||
453 | + editor.remove("c12_315") | ||
454 | + editor.remove("c12_316") | ||
455 | + editor.remove("c12_317") | ||
456 | + editor.remove("c12_318") | ||
457 | + editor.remove("c12_319") | ||
458 | + editor.remove("c12_320") | ||
459 | + editor.remove("c12_321") | ||
460 | + editor.remove("c12_322") | ||
461 | + editor.remove("c12_323") | ||
462 | + editor.remove("c12_324") | ||
463 | + editor.remove("c12_325") | ||
464 | + editor.remove("c12_326") | ||
465 | + editor.remove("c12_327") | ||
466 | + editor.remove("c12_328") | ||
467 | + editor.remove("c12_329") | ||
468 | + editor.remove("c12_330") | ||
469 | + editor.remove("c12_331") | ||
470 | + editor.remove("c12_332") | ||
471 | + editor.remove("c12_333") | ||
472 | + editor.remove("c12_334") | ||
473 | + editor.remove("c12_335") | ||
474 | + editor.remove("c12_336") | ||
475 | + editor.remove("c12_337") | ||
476 | + editor.remove("c12_338") | ||
477 | + editor.remove("c12_339") | ||
478 | + editor.remove("c12_340") | ||
479 | + editor.remove("c12_341") | ||
480 | + editor.remove("c12_342") | ||
481 | + editor.remove("c12_343") | ||
482 | + editor.remove("c12_344") | ||
483 | + editor.remove("c12_345") | ||
484 | + editor.remove("c12_346") | ||
485 | + editor.remove("c12_347") | ||
486 | + editor.remove("c12_348") | ||
487 | + editor.remove("c12_349") | ||
488 | + editor.remove("c12_350") | ||
489 | + editor.commit() | ||
490 | + | ||
220 | 491 | ||
221 | if(doSpinner.selectedItem.toString()=="서울특별시"){ editor.putInt("c11_2",1); editor.commit();editor.putString("first_four","done");editor.commit()} | 492 | if(doSpinner.selectedItem.toString()=="서울특별시"){ editor.putInt("c11_2",1); editor.commit();editor.putString("first_four","done");editor.commit()} |
222 | if(doSpinner.selectedItem.toString()=="부산광역시"){ editor.putInt("c11_3",1); editor.commit();editor.putString("first_four","done");editor.commit()} | 493 | if(doSpinner.selectedItem.toString()=="부산광역시"){ editor.putInt("c11_3",1); editor.commit();editor.putString("first_four","done");editor.commit()} | ... | ... |
... | @@ -12,6 +12,23 @@ import com.google.firebase.database.FirebaseDatabase | ... | @@ -12,6 +12,23 @@ import com.google.firebase.database.FirebaseDatabase |
12 | import com.google.firebase.iid.FirebaseInstanceId | 12 | import com.google.firebase.iid.FirebaseInstanceId |
13 | import kotlinx.android.synthetic.main.activity_input_profil_first_one.* | 13 | import kotlinx.android.synthetic.main.activity_input_profil_first_one.* |
14 | 14 | ||
15 | +val global_cat_1=listOf("c1_1","c1_2","c1_3") | ||
16 | +val global_cat_2=listOf("c2_1","c2_2","c2_3","c2_4","c2_5","c2_6","c2_7") | ||
17 | +val global_cat_3=listOf("c3_1","c3_2","c3_3") | ||
18 | +val global_cat_4=listOf("c4_1","c4_2","c4_3","c4_4","c4_5","c4_6","c4_7","c4_8","c4_9","c4_10","c4_11") | ||
19 | +val global_cat_5=listOf("c5_1","c5_2","c5_3","c5_4","c5_5","c5_6","c5_7","c5_8","c5_9") | ||
20 | +val global_cat_6=listOf("c6_1","c6_2","c6_3","c6_4","c6_5","c6_6","c6_7") | ||
21 | +val global_cat_7=listOf("c7_1","c7_2","c7_3") | ||
22 | +val global_cat_8=listOf("c8_1","c8_2","c8_3","c8_4","c8_5","c8_6","c8_7","c8_8","c8_9","c8_10","c8_11","c8_12","c8_13","c8_14","c8_15","c8_16","c8_17") | ||
23 | +val global_cat_9=listOf("c9_1","c9_2","c9_3","c9_4","c9_5","c9_6","c9_7","c9_8","c9_9","c9_10","c9_11","c9_12","c9_13","c9_14","c9_15","c9_16","c9_17","c9_18","c9_19") | ||
24 | +val global_cat_10=listOf("c10_1","c10_2","c10_3","c10_4","c10_5","c10_6","c10_7","c10_8","c10_9","c10_10","c10_11","c10_12","c10_13","c10_14","c10_15","c10_16","c10_17","c10_18") | ||
25 | +val global_cat_11=listOf("c11_1","c11_2","c11_3","c11_4","c11_5","c11_6","c11_7","c11_8","c11_9","c11_10","c11_11","c11_12","c11_13","c11_14","c11_15","c11_16","c11_17","c11_18") | ||
26 | +val global_cat_12=listOf("c12_1","c12_100","c12_101","c12_102","c12_103","c12_104","c12_105","c12_106","c12_107","c12_108","c12_109","c12_110","c12_111","c12_112","c12_113","c12_114","c12_115","c12_116","c12_117","c12_118","c12_119","c12_120","c12_121","c12_122","c12_123","c12_124","c12_125","c12_126","c12_127","c12_128","c12_129","c12_130","c12_131","c12_132","c12_133","c12_134","c12_135","c12_136","c12_137","c12_138","c12_139","c12_140","c12_141","c12_142","c12_143","c12_144","c12_145","c12_146","c12_147","c12_148","c12_149","c12_150","c12_151","c12_152","c12_153","c12_154","c12_155","c12_156","c12_157","c12_158","c12_159","c12_160","c12_161","c12_162","c12_163","c12_164","c12_165","c12_166","c12_167","c12_168","c12_169","c12_170","c12_171","c12_172","c12_173","c12_174","c12_175","c12_176","c12_177","c12_178","c12_179","c12_180","c12_181","c12_182","c12_183","c12_184","c12_185","c12_186","c12_187","c12_188","c12_189","c12_190","c12_191","c12_192","c12_193","c12_194","c12_195","c12_196","c12_197","c12_198","c12_199","c12_200","c12_201","c12_202","c12_203","c12_204","c12_205","c12_206","c12_207","c12_208","c12_209","c12_210","c12_211","c12_212","c12_213","c12_214","c12_215","c12_216","c12_217","c12_218","c12_219","c12_220","c12_221","c12_222","c12_223","c12_224","c12_225","c12_226","c12_227","c12_228","c12_229","c12_230","c12_231","c12_232","c12_233","c12_234","c12_235","c12_236","c12_237","c12_238","c12_239","c12_240","c12_241","c12_242","c12_243","c12_244","c12_245","c12_246","c12_247","c12_248","c12_249","c12_250","c12_251","c12_252","c12_253","c12_254","c12_255","c12_256","c12_257","c12_258","c12_259","c12_260","c12_261","c12_262","c12_263","c12_264","c12_265","c12_266","c12_267","c12_268","c12_269","c12_270","c12_271","c12_272","c12_273","c12_274","c12_275","c12_276","c12_277","c12_278","c12_279","c12_280","c12_281","c12_282","c12_283","c12_284","c12_285","c12_286","c12_287","c12_288","c12_289","c12_290","c12_291","c12_292","c12_293","c12_294","c12_295","c12_296","c12_297","c12_298","c12_299","c12_300","c12_301","c12_302","c12_303","c12_304","c12_305","c12_306","c12_307","c12_308","c12_309","c12_310","c12_311","c12_312","c12_313","c12_314","c12_315","c12_316","c12_317","c12_318","c12_319","c12_320","c12_321","c12_322","c12_323","c12_324","c12_325","c12_326","c12_327","c12_328","c12_329","c12_330","c12_331","c12_332","c12_333","c12_334","c12_335","c12_336","c12_337","c12_338","c12_339","c12_340","c12_341","c12_342","c12_343","c12_344","c12_345","c12_346","c12_347","c12_348","c12_349","c12_350") | ||
27 | +val global_cat_13=listOf("c13_1","c13_2","c13_3") | ||
28 | +val global_cat_14=listOf("c14_1","c14_2","c14_3") | ||
29 | +val global_cat_15=listOf("c15_1","c15_2","c15_3") | ||
30 | +val global_cat_16=listOf("c16_1","c16_2","c16_3","c16_4","c16_5","c16_6","c16_7") | ||
31 | +val global_cat_list=mutableListOf<String>("c1_1","c1_2","c1_3","c2_1","c2_2","c2_3","c2_4","c2_5","c2_6","c2_7","c3_1","c3_2","c3_3","c4_1","c4_2","c4_3","c4_4","c4_5","c4_6","c4_7","c4_8","c4_9","c4_10","c4_11","c5_1","c5_2","c5_3","c5_4","c5_5","c5_6","c5_7","c5_8","c5_9","c6_1","c6_2","c6_3","c6_4","c6_5","c6_6","c6_7","c7_1","c7_2","c7_3","c8_1","c8_2","c8_3","c8_4","c8_5","c8_6","c8_7","c8_8","c8_9","c8_10","c8_11","c8_12","c8_13","c8_14","c8_15","c8_16","c8_17","c9_1","c9_2","c9_3","c9_4","c9_5","c9_6","c9_7","c9_8","c9_9","c9_10","c9_11","c9_12","c9_13","c9_14","c9_15","c9_16","c9_17","c9_18","c9_19","c10_1","c10_2","c10_3","c10_4","c10_5","c10_6","c10_7","c10_8","c10_9","c10_10","c10_11","c10_12","c10_13","c10_14","c10_15","c10_16","c10_17","c10_18","c11_1","c11_2","c11_3","c11_4","c11_5","c11_6","c11_7","c11_8","c11_9","c11_10","c11_11","c11_12","c11_13","c11_14","c11_15","c11_16","c11_17","c11_18","c12_1","c12_100","c12_101","c12_102","c12_103","c12_104","c12_105","c12_106","c12_107","c12_108","c12_109","c12_110","c12_111","c12_112","c12_113","c12_114","c12_115","c12_116","c12_117","c12_118","c12_119","c12_120","c12_121","c12_122","c12_123","c12_124","c12_125","c12_126","c12_127","c12_128","c12_129","c12_130","c12_131","c12_132","c12_133","c12_134","c12_135","c12_136","c12_137","c12_138","c12_139","c12_140","c12_141","c12_142","c12_143","c12_144","c12_145","c12_146","c12_147","c12_148","c12_149","c12_150","c12_151","c12_152","c12_153","c12_154","c12_155","c12_156","c12_157","c12_158","c12_159","c12_160","c12_161","c12_162","c12_163","c12_164","c12_165","c12_166","c12_167","c12_168","c12_169","c12_170","c12_171","c12_172","c12_173","c12_174","c12_175","c12_176","c12_177","c12_178","c12_179","c12_180","c12_181","c12_182","c12_183","c12_184","c12_185","c12_186","c12_187","c12_188","c12_189","c12_190","c12_191","c12_192","c12_193","c12_194","c12_195","c12_196","c12_197","c12_198","c12_199","c12_200","c12_201","c12_202","c12_203","c12_204","c12_205","c12_206","c12_207","c12_208","c12_209","c12_210","c12_211","c12_212","c12_213","c12_214","c12_215","c12_216","c12_217","c12_218","c12_219","c12_220","c12_221","c12_222","c12_223","c12_224","c12_225","c12_226","c12_227","c12_228","c12_229","c12_230","c12_231","c12_232","c12_233","c12_234","c12_235","c12_236","c12_237","c12_238","c12_239","c12_240","c12_241","c12_242","c12_243","c12_244","c12_245","c12_246","c12_247","c12_248","c12_249","c12_250","c12_251","c12_252","c12_253","c12_254","c12_255","c12_256","c12_257","c12_258","c12_259","c12_260","c12_261","c12_262","c12_263","c12_264","c12_265","c12_266","c12_267","c12_268","c12_269","c12_270","c12_271","c12_272","c12_273","c12_274","c12_275","c12_276","c12_277","c12_278","c12_279","c12_280","c12_281","c12_282","c12_283","c12_284","c12_285","c12_286","c12_287","c12_288","c12_289","c12_290","c12_291","c12_292","c12_293","c12_294","c12_295","c12_296","c12_297","c12_298","c12_299","c12_300","c12_301","c12_302","c12_303","c12_304","c12_305","c12_306","c12_307","c12_308","c12_309","c12_310","c12_311","c12_312","c12_313","c12_314","c12_315","c12_316","c12_317","c12_318","c12_319","c12_320","c12_321","c12_322","c12_323","c12_324","c12_325","c12_326","c12_327","c12_328","c12_329","c12_330","c12_331","c12_332","c12_333","c12_334","c12_335","c12_336","c12_337","c12_338","c12_339","c12_340","c12_341","c12_342","c12_343","c12_344","c12_345","c12_346","c12_347","c12_348","c12_349","c12_350","c13_1","c13_2","c13_3","c14_1","c14_2","c14_3","c15_1","c15_2","c15_3","c16_1","c16_2","c16_3","c16_4","c16_5","c16_6","c16_7") | ||
15 | class InputProfilFirstOneActivity : AppCompatActivity() { | 32 | class InputProfilFirstOneActivity : AppCompatActivity() { |
16 | 33 | ||
17 | private val firebaseAuth = FirebaseAuth.getInstance() | 34 | private val firebaseAuth = FirebaseAuth.getInstance() | ... | ... |
... | @@ -130,6 +130,10 @@ class InputProfilFirstSixActivity : AppCompatActivity() { | ... | @@ -130,6 +130,10 @@ class InputProfilFirstSixActivity : AppCompatActivity() { |
130 | } | 130 | } |
131 | 131 | ||
132 | nextButton.setOnClickListener { | 132 | nextButton.setOnClickListener { |
133 | + editor.remove("first_six") | ||
134 | + editor.remove("c13_2") | ||
135 | + editor.remove("c13_3") | ||
136 | + editor.commit() | ||
133 | 137 | ||
134 | 138 | ||
135 | 139 | ... | ... |
... | @@ -144,6 +144,12 @@ class InputProfilFirstThreeActivity : AppCompatActivity() { | ... | @@ -144,6 +144,12 @@ class InputProfilFirstThreeActivity : AppCompatActivity() { |
144 | } | 144 | } |
145 | 145 | ||
146 | nextButton.setOnClickListener { | 146 | nextButton.setOnClickListener { |
147 | + editor.remove("c3_2") | ||
148 | + editor.remove("c3_3") | ||
149 | + editor.remove("first_three") | ||
150 | + editor.commit() | ||
151 | + | ||
152 | + | ||
147 | 153 | ||
148 | var intent = Intent(this, InputProfilFirstFourActivity::class.java) | 154 | var intent = Intent(this, InputProfilFirstFourActivity::class.java) |
149 | startActivity(intent) | 155 | startActivity(intent) |
... | @@ -156,12 +162,14 @@ class InputProfilFirstThreeActivity : AppCompatActivity() { | ... | @@ -156,12 +162,14 @@ class InputProfilFirstThreeActivity : AppCompatActivity() { |
156 | 162 | ||
157 | //마지막장에 상관없음 추가 | 163 | //마지막장에 상관없음 추가 |
158 | } | 164 | } |
159 | - else{ | 165 | + else if(womanButton.isChecked){ |
160 | editor.putInt("c3_3",1) | 166 | editor.putInt("c3_3",1) |
161 | editor.putString("gender", "여자") | 167 | editor.putString("gender", "여자") |
162 | editor.commit() | 168 | editor.commit() |
163 | editor.putString("first_three","done");editor.commit() | 169 | editor.putString("first_three","done");editor.commit() |
164 | 170 | ||
171 | + }else{ | ||
172 | + | ||
165 | } | 173 | } |
166 | } | 174 | } |
167 | 175 | ... | ... |
... | @@ -132,18 +132,29 @@ class InputProfilFirstTwoActivity : AppCompatActivity() { | ... | @@ -132,18 +132,29 @@ class InputProfilFirstTwoActivity : AppCompatActivity() { |
132 | 132 | ||
133 | //editor.putString("birthdate","none") | 133 | //editor.putString("birthdate","none") |
134 | 134 | ||
135 | + previousButton.setOnClickListener { | ||
136 | + var intent = Intent(this, InputProfilFirstOneActivity::class.java) | ||
137 | + startActivity(intent) | ||
138 | + } | ||
135 | 139 | ||
136 | nextButton.setOnClickListener { | 140 | nextButton.setOnClickListener { |
141 | + editor.remove("c1_2") | ||
142 | + editor.remove("c1_3") | ||
143 | + editor.remove("c1_4") | ||
144 | + editor.remove("c1_5") | ||
145 | + editor.remove("c1_6") | ||
146 | + editor.remove("c1_7") | ||
147 | + editor.remove("first_two") | ||
148 | + editor.commit() | ||
149 | + | ||
150 | + | ||
137 | 151 | ||
138 | var birthdateinput=findViewById<EditText>(R.id.editText).text.toString() | 152 | var birthdateinput=findViewById<EditText>(R.id.editText).text.toString() |
139 | - var birthdateint = 0 | 153 | + var birthdateint:Int |
140 | if (birthdateinput == "") { | 154 | if (birthdateinput == "") { |
141 | - birthdateint = 0 | ||
142 | } | 155 | } |
143 | else { | 156 | else { |
144 | birthdateint = birthdateinput.toInt() | 157 | birthdateint = birthdateinput.toInt() |
145 | - } | ||
146 | - | ||
147 | if ((2019-birthdateint)<19){ | 158 | if ((2019-birthdateint)<19){ |
148 | editor.putInt("c1_2",1) | 159 | editor.putInt("c1_2",1) |
149 | editor.commit() | 160 | editor.commit() |
... | @@ -190,6 +201,9 @@ class InputProfilFirstTwoActivity : AppCompatActivity() { | ... | @@ -190,6 +201,9 @@ class InputProfilFirstTwoActivity : AppCompatActivity() { |
190 | editor.putString("first_two","done");editor.commit() | 201 | editor.putString("first_two","done");editor.commit() |
191 | 202 | ||
192 | } | 203 | } |
204 | + } | ||
205 | + | ||
206 | + | ||
193 | var intent = Intent(this, InputProfilFirstThreeActivity::class.java) | 207 | var intent = Intent(this, InputProfilFirstThreeActivity::class.java) |
194 | startActivity(intent) | 208 | startActivity(intent) |
195 | 209 | ... | ... |
... | @@ -161,6 +161,14 @@ class InputProfilFourthFiveActivity : AppCompatActivity() { | ... | @@ -161,6 +161,14 @@ class InputProfilFourthFiveActivity : AppCompatActivity() { |
161 | } | 161 | } |
162 | 162 | ||
163 | nextButton.setOnClickListener { | 163 | nextButton.setOnClickListener { |
164 | + editor.remove("fourth_five") | ||
165 | + editor.remove("c8_1") | ||
166 | + editor.remove("c8_12") | ||
167 | + editor.remove("c8_13") | ||
168 | + editor.remove("c8_14") | ||
169 | + editor.remove("c8_17") | ||
170 | + editor.commit() | ||
171 | + | ||
164 | if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit();editor.putString("fourth_five","done");editor.commit()} | 172 | if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit();editor.putString("fourth_five","done");editor.commit()} |
165 | if(iljaeButton.isChecked){editor.putInt("c8_12",1); editor.commit();editor.putString("fourth_five","done");editor.commit()} | 173 | if(iljaeButton.isChecked){editor.putInt("c8_12",1); editor.commit();editor.putString("fourth_five","done");editor.commit()} |
166 | if(specialpihaeButton.isChecked){editor.putInt("c8_13",1); editor.commit();editor.putString("fourth_five","done");editor.commit()} | 174 | if(specialpihaeButton.isChecked){editor.putInt("c8_13",1); editor.commit();editor.putString("fourth_five","done");editor.commit()} | ... | ... |
... | @@ -163,6 +163,18 @@ class InputProfilFourthFourActivity : AppCompatActivity() { | ... | @@ -163,6 +163,18 @@ class InputProfilFourthFourActivity : AppCompatActivity() { |
163 | startActivity(intent) | 163 | startActivity(intent) |
164 | } | 164 | } |
165 | nextButton.setOnClickListener { | 165 | nextButton.setOnClickListener { |
166 | + editor.remove("fourth_four") | ||
167 | + editor.remove("c8_1") | ||
168 | + editor.remove("c8_9") | ||
169 | + editor.remove("c8_9") | ||
170 | + editor.remove("c8_9") | ||
171 | + editor.remove("c8_9") | ||
172 | + editor.remove("c8_15") | ||
173 | + editor.remove("c8_9") | ||
174 | + editor.remove("c8_16") | ||
175 | + editor.remove("c5_9") | ||
176 | + editor.remove("c8_17") | ||
177 | + editor.commit() | ||
166 | 178 | ||
167 | if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit();editor.putString("fourth_four","done");editor.commit()} | 179 | if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit();editor.putString("fourth_four","done");editor.commit()} |
168 | if(pokryukButton.isChecked){editor.putInt("c8_9",1); editor.commit();editor.putString("fourth_four","done");editor.commit()} | 180 | if(pokryukButton.isChecked){editor.putInt("c8_9",1); editor.commit();editor.putString("fourth_four","done");editor.commit()} | ... | ... |
... | @@ -190,6 +190,16 @@ class InputProfilFourthOneActivity : AppCompatActivity() { | ... | @@ -190,6 +190,16 @@ class InputProfilFourthOneActivity : AppCompatActivity() { |
190 | } | 190 | } |
191 | 191 | ||
192 | nextButton.setOnClickListener { | 192 | nextButton.setOnClickListener { |
193 | + editor.remove("fourth_one") | ||
194 | + editor.remove("c14_2") | ||
195 | + editor.remove("c14_3") | ||
196 | + editor.remove("c16_2") | ||
197 | + editor.remove("c16_3") | ||
198 | + editor.remove("c16_4") | ||
199 | + editor.remove("c16_5") | ||
200 | + editor.remove("c16_6") | ||
201 | + editor.remove("c16_7") | ||
202 | + editor.commit() | ||
193 | 203 | ||
194 | if(yesButton.isChecked){ | 204 | if(yesButton.isChecked){ |
195 | editor.putInt("c14_2",1) | 205 | editor.putInt("c14_2",1) |
... | @@ -199,7 +209,7 @@ class InputProfilFourthOneActivity : AppCompatActivity() { | ... | @@ -199,7 +209,7 @@ class InputProfilFourthOneActivity : AppCompatActivity() { |
199 | if(noButton.isChecked){ | 209 | if(noButton.isChecked){ |
200 | editor.putInt("c14_3",1) | 210 | editor.putInt("c14_3",1) |
201 | editor.commit() | 211 | editor.commit() |
202 | - editor.putString("fourth_one","done");editor.commit() | 212 | + //editor.putString("fourth_one","done");editor.commit() |
203 | } | 213 | } |
204 | if(jeonsaeButton.isChecked){ | 214 | if(jeonsaeButton.isChecked){ |
205 | editor.putInt("c16_2",1) | 215 | editor.putInt("c16_2",1) | ... | ... |
... | @@ -132,6 +132,20 @@ class InputProfilFourthThreeActivity : AppCompatActivity() { | ... | @@ -132,6 +132,20 @@ class InputProfilFourthThreeActivity : AppCompatActivity() { |
132 | 132 | ||
133 | 133 | ||
134 | nextButton.setOnClickListener { | 134 | nextButton.setOnClickListener { |
135 | + editor.remove("fourth_three") | ||
136 | + editor.remove("c8_1") | ||
137 | + editor.remove("c8_3") | ||
138 | + editor.remove("c8_7") | ||
139 | + editor.remove("c8_5") | ||
140 | + editor.remove("c8_4") | ||
141 | + editor.remove("c8_2") | ||
142 | + editor.remove("c7_1") | ||
143 | + editor.remove("c8_10") | ||
144 | + editor.remove("c8_11") | ||
145 | + editor.remove("c8_6") | ||
146 | + editor.remove("c8_8") | ||
147 | + editor.remove("c8_17") | ||
148 | + editor.commit() | ||
135 | if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit();editor.putString("fourth_three","done");editor.commit()} | 149 | if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit();editor.putString("fourth_three","done");editor.commit()} |
136 | if(jeosodeukButton.isChecked){editor.putInt("c8_3",1); editor.commit();editor.putString("fourth_three","done");editor.commit()} | 150 | if(jeosodeukButton.isChecked){editor.putInt("c8_3",1); editor.commit();editor.putString("fourth_three","done");editor.commit()} |
137 | if(hanboomoButton.isChecked){editor.putInt("c8_7",1); editor.commit();editor.putString("fourth_three","done");editor.commit()} | 151 | if(hanboomoButton.isChecked){editor.putInt("c8_7",1); editor.commit();editor.putString("fourth_three","done");editor.commit()} | ... | ... |
... | @@ -165,8 +165,21 @@ class InputProfilFourthTwoActivity : AppCompatActivity() { | ... | @@ -165,8 +165,21 @@ class InputProfilFourthTwoActivity : AppCompatActivity() { |
165 | 165 | ||
166 | 166 | ||
167 | nextButton.setOnClickListener { | 167 | nextButton.setOnClickListener { |
168 | + editor.remove("fourth_two") | ||
169 | + editor.remove("c15_2") | ||
170 | + editor.remove("c15_3") | ||
171 | + editor.remove("c16_2") | ||
172 | + editor.remove("c16_3") | ||
173 | + editor.remove("c16_4") | ||
174 | + editor.remove("c16_5") | ||
175 | + editor.remove("c16_6") | ||
176 | + editor.remove("c16_7") | ||
177 | + editor.commit() | ||
178 | + | ||
168 | if(yesButton.isChecked){editor.putInt("c15_2",1); editor.commit();editor.putString("fourth_two","done");editor.commit()} | 179 | if(yesButton.isChecked){editor.putInt("c15_2",1); editor.commit();editor.putString("fourth_two","done");editor.commit()} |
169 | - if(noButton.isChecked){editor.putInt("c15_3",1); editor.commit();editor.putString("fourth_two","done");editor.commit()} | 180 | + if(noButton.isChecked){editor.putInt("c15_3",1); editor.commit(); |
181 | + //editor.putString("fourth_two","done"); | ||
182 | + editor.commit()} | ||
170 | if(jeonsaeButton.isChecked){editor.putInt("c16_2",1); editor.commit();editor.putString("fourth_two","done");editor.commit()} | 183 | if(jeonsaeButton.isChecked){editor.putInt("c16_2",1); editor.commit();editor.putString("fourth_two","done");editor.commit()} |
171 | if(wolseButton.isChecked){editor.putInt("c16_3",1); editor.commit();editor.putString("fourth_two","done");editor.commit()} | 184 | if(wolseButton.isChecked){editor.putInt("c16_3",1); editor.commit();editor.putString("fourth_two","done");editor.commit()} |
172 | if(kongkongButton.isChecked){editor.putInt("c16_4",1); editor.commit();editor.putString("fourth_two","done");editor.commit()} | 185 | if(kongkongButton.isChecked){editor.putInt("c16_4",1); editor.commit();editor.putString("fourth_two","done");editor.commit()} | ... | ... |
... | @@ -154,6 +154,25 @@ class InputProfilSecondOneActivity : AppCompatActivity() { | ... | @@ -154,6 +154,25 @@ class InputProfilSecondOneActivity : AppCompatActivity() { |
154 | 154 | ||
155 | 155 | ||
156 | nextButton.setOnClickListener { | 156 | nextButton.setOnClickListener { |
157 | + editor.remove("second_one") | ||
158 | + editor.remove("with_brothersister") | ||
159 | + editor.remove("with_child") | ||
160 | + editor.remove("c10_2") | ||
161 | + editor.remove("c10_3") | ||
162 | + editor.remove("c10_4") | ||
163 | + editor.remove("c10_5") | ||
164 | + editor.remove("c10_6") | ||
165 | + editor.remove("c10_7") | ||
166 | + editor.remove("c10_8") | ||
167 | + editor.remove("c10_9") | ||
168 | + editor.remove("c10_10") | ||
169 | + editor.remove("c10_11") | ||
170 | + editor.remove("c10_12") | ||
171 | + editor.remove("c10_13") | ||
172 | + editor.remove("c10_14") | ||
173 | + editor.remove("c10_15") | ||
174 | + editor.remove("c10_18") | ||
175 | + editor.commit() | ||
157 | 176 | ||
158 | if(baewoojaButton.isChecked){editor.putInt("c10_2",1); editor.commit();editor.putString("second_one","done");editor.commit()} | 177 | if(baewoojaButton.isChecked){editor.putInt("c10_2",1); editor.commit();editor.putString("second_one","done");editor.commit()} |
159 | if(baewoojaboomoButton.isChecked){editor.putInt("c10_3",1); editor.commit();editor.putString("second_one","done");editor.commit()} | 178 | if(baewoojaboomoButton.isChecked){editor.putInt("c10_3",1); editor.commit();editor.putString("second_one","done");editor.commit()} |
... | @@ -178,15 +197,15 @@ class InputProfilSecondOneActivity : AppCompatActivity() { | ... | @@ -178,15 +197,15 @@ class InputProfilSecondOneActivity : AppCompatActivity() { |
178 | ){ | 197 | ){ |
179 | var intent = Intent(this, InputProfilSecondTwoActivity::class.java) | 198 | var intent = Intent(this, InputProfilSecondTwoActivity::class.java) |
180 | startActivity(intent) | 199 | startActivity(intent) |
200 | + }else if(janyeoButton.isChecked==false&&brotherButton.isChecked==true){ | ||
201 | + var intent = Intent(this, InputProfilSecondThreeActivity::class.java) | ||
202 | + startActivity(intent) | ||
181 | }else{ | 203 | }else{ |
182 | var intent = Intent(this, InputProfilThirdOneActivity::class.java) | 204 | var intent = Intent(this, InputProfilThirdOneActivity::class.java) |
183 | startActivity(intent) | 205 | startActivity(intent) |
184 | } | 206 | } |
185 | 207 | ||
186 | - if(janyeoButton.isChecked==false&&brotherButton.isChecked==true){ | 208 | + |
187 | - var intent = Intent(this, InputProfilSecondThreeActivity::class.java) | ||
188 | - startActivity(intent) | ||
189 | - } | ||
190 | } | 209 | } |
191 | 210 | ||
192 | nothingButton.setOnClickListener { | 211 | nothingButton.setOnClickListener { | ... | ... |
... | @@ -129,18 +129,38 @@ class InputProfilSecondThreeActivity : AppCompatActivity() { | ... | @@ -129,18 +129,38 @@ class InputProfilSecondThreeActivity : AppCompatActivity() { |
129 | 129 | ||
130 | 130 | ||
131 | previousButton.setOnClickListener { | 131 | previousButton.setOnClickListener { |
132 | + if(prof.getString("with_child","none")=="yes"){ | ||
132 | var intent = Intent(this, InputProfilSecondTwoActivity::class.java) | 133 | var intent = Intent(this, InputProfilSecondTwoActivity::class.java) |
133 | startActivity(intent) | 134 | startActivity(intent) |
134 | } | 135 | } |
136 | + else{ | ||
137 | + var intent = Intent(this, InputProfilSecondOneActivity::class.java) | ||
138 | + startActivity(intent) | ||
139 | + } | ||
140 | + | ||
141 | + } | ||
135 | 142 | ||
136 | nextButton.setOnClickListener { | 143 | nextButton.setOnClickListener { |
137 | - var numOfBS=findViewById<EditText>(R.id.bsNumberEditText).text.toString().toInt() | 144 | + editor.remove("second_three") |
145 | + editor.remove("c10_16") | ||
146 | + editor.remove("c10_17") | ||
147 | + editor.commit() | ||
148 | + | ||
149 | + var numOfBS:Int | ||
150 | + if(findViewById<EditText>(R.id.bsNumberEditText).text.toString()==""){ | ||
151 | + numOfBS=0 | ||
152 | + }else{ | ||
153 | + numOfBS=findViewById<EditText>(R.id.bsNumberEditText).text.toString().toInt() | ||
138 | if(numOfBS>=2){ | 154 | if(numOfBS>=2){ |
139 | editor.putInt("c10_16",1); editor.commit();editor.putString("second_three","done");editor.commit() | 155 | editor.putInt("c10_16",1); editor.commit();editor.putString("second_three","done");editor.commit() |
140 | - } | 156 | + }else if(numOfBS<2){ |
141 | - if(numOfBS<2){ | ||
142 | editor.putInt("c10_17",1); editor.commit();editor.putString("second_three","done");editor.commit() | 157 | editor.putInt("c10_17",1); editor.commit();editor.putString("second_three","done");editor.commit() |
158 | + }else{ | ||
159 | + | ||
143 | } | 160 | } |
161 | + } | ||
162 | + | ||
163 | + | ||
144 | var intent = Intent(this, InputProfilThirdOneActivity::class.java) | 164 | var intent = Intent(this, InputProfilThirdOneActivity::class.java) |
145 | startActivity(intent) | 165 | startActivity(intent) |
146 | } | 166 | } | ... | ... |
... | @@ -130,13 +130,28 @@ class InputProfilSecondTwoActivity : AppCompatActivity() { | ... | @@ -130,13 +130,28 @@ class InputProfilSecondTwoActivity : AppCompatActivity() { |
130 | startActivity(intent) | 130 | startActivity(intent) |
131 | } | 131 | } |
132 | nextButton.setOnClickListener { | 132 | nextButton.setOnClickListener { |
133 | - var numOfChild=findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt() | 133 | + editor.remove("second_two") |
134 | + editor.remove("c10_16") | ||
135 | + editor.remove("c10_17") | ||
136 | + editor.commit() | ||
137 | + | ||
138 | + var numOfChild:Int | ||
139 | + if(findViewById<EditText>(R.id.childNumberEditText).text.toString()==""){ | ||
140 | + numOfChild=0 | ||
141 | + }else{ | ||
142 | + numOfChild=findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt() | ||
134 | if(numOfChild>=3){ | 143 | if(numOfChild>=3){ |
135 | editor.putInt("c10_16",1); editor.commit();editor.putString("second_two","done");editor.commit() | 144 | editor.putInt("c10_16",1); editor.commit();editor.putString("second_two","done");editor.commit() |
136 | - } | 145 | + }else if(numOfChild<3){ |
137 | - if(numOfChild<3){ | ||
138 | editor.putInt("c10_17",1); editor.commit();editor.putString("second_two","done");editor.commit() | 146 | editor.putInt("c10_17",1); editor.commit();editor.putString("second_two","done");editor.commit() |
147 | + }else{ | ||
148 | + | ||
139 | } | 149 | } |
150 | + } | ||
151 | + | ||
152 | + | ||
153 | + | ||
154 | + | ||
140 | 155 | ||
141 | 156 | ||
142 | 157 | ||
... | @@ -163,6 +178,7 @@ class InputProfilSecondTwoActivity : AppCompatActivity() { | ... | @@ -163,6 +178,7 @@ class InputProfilSecondTwoActivity : AppCompatActivity() { |
163 | childNumberInputButton.setOnClickListener { | 178 | childNumberInputButton.setOnClickListener { |
164 | 179 | ||
165 | childList.clear() | 180 | childList.clear() |
181 | + | ||
166 | if(findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt()>0){ | 182 | if(findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt()>0){ |
167 | var childNum=findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt() | 183 | var childNum=findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt() |
168 | var cnt=1 | 184 | var cnt=1 |
... | @@ -183,6 +199,10 @@ class InputProfilSecondTwoActivity : AppCompatActivity() { | ... | @@ -183,6 +199,10 @@ class InputProfilSecondTwoActivity : AppCompatActivity() { |
183 | 199 | ||
184 | 200 | ||
185 | 201 | ||
202 | + | ||
203 | + | ||
204 | + | ||
205 | + | ||
186 | } | 206 | } |
187 | 207 | ||
188 | 208 | ... | ... |
... | @@ -169,6 +169,14 @@ class InputProfilThirdFiveActivity : AppCompatActivity() { | ... | @@ -169,6 +169,14 @@ class InputProfilThirdFiveActivity : AppCompatActivity() { |
169 | } | 169 | } |
170 | 170 | ||
171 | nextButton.setOnClickListener { | 171 | nextButton.setOnClickListener { |
172 | + editor.remove("third_four") | ||
173 | + editor.remove("c8_1") | ||
174 | + editor.remove("c7_2") | ||
175 | + editor.remove("c9_17") | ||
176 | + editor.remove("c9_18") | ||
177 | + editor.remove("c9_19") | ||
178 | + editor.remove("c8_17") | ||
179 | + editor.commit() | ||
172 | 180 | ||
173 | if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit();editor.putString("third_four","done");editor.commit()}//DB,pref 뻑 주의 | 181 | if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit();editor.putString("third_four","done");editor.commit()}//DB,pref 뻑 주의 |
174 | if(imshinButton.isChecked){editor.putInt("c7_2",1); editor.commit();editor.putString("third_four","done");editor.commit()} | 182 | if(imshinButton.isChecked){editor.putInt("c7_2",1); editor.commit();editor.putString("third_four","done");editor.commit()} | ... | ... |
... | @@ -133,6 +133,24 @@ class InputProfilThirdFourActivity : AppCompatActivity() { | ... | @@ -133,6 +133,24 @@ class InputProfilThirdFourActivity : AppCompatActivity() { |
133 | } | 133 | } |
134 | 134 | ||
135 | nextButton.setOnClickListener { | 135 | nextButton.setOnClickListener { |
136 | + editor.remove("third_four") | ||
137 | + editor.remove("c8_2") | ||
138 | + editor.remove("c9_2") | ||
139 | + editor.remove("c9_3") | ||
140 | + editor.remove("c9_4") | ||
141 | + editor.remove("c9_5") | ||
142 | + editor.remove("c9_6") | ||
143 | + editor.remove("c9_7") | ||
144 | + editor.remove("c9_8") | ||
145 | + editor.remove("c9_9") | ||
146 | + editor.remove("c9_10") | ||
147 | + editor.remove("c9_11") | ||
148 | + editor.remove("c9_12") | ||
149 | + editor.remove("c9_13") | ||
150 | + editor.remove("c9_14") | ||
151 | + editor.remove("c9_15") | ||
152 | + editor.remove("c9_16") | ||
153 | + editor.commit() | ||
136 | 154 | ||
137 | if(yesButton.isChecked){ | 155 | if(yesButton.isChecked){ |
138 | editor.putInt("c8_2",1); editor.commit() | 156 | editor.putInt("c8_2",1); editor.commit() | ... | ... |
... | @@ -184,11 +184,29 @@ class InputProfilThirdOneActivity : AppCompatActivity() { | ... | @@ -184,11 +184,29 @@ class InputProfilThirdOneActivity : AppCompatActivity() { |
184 | } | 184 | } |
185 | 185 | ||
186 | previousButton.setOnClickListener { | 186 | previousButton.setOnClickListener { |
187 | + | ||
188 | + if(prof.getString("with_brothersister","none")=="yes"){ | ||
187 | var intent = Intent(this, InputProfilSecondThreeActivity::class.java) | 189 | var intent = Intent(this, InputProfilSecondThreeActivity::class.java) |
188 | startActivity(intent) | 190 | startActivity(intent) |
191 | + }else if(prof.getString("with_child","none")=="yes"){ | ||
192 | + var intent = Intent(this, InputProfilSecondTwoActivity::class.java) | ||
193 | + startActivity(intent) | ||
194 | + }else{ | ||
195 | + var intent = Intent(this, InputProfilSecondOneActivity::class.java) | ||
196 | + startActivity(intent) | ||
197 | + } | ||
198 | + | ||
189 | } | 199 | } |
190 | 200 | ||
191 | nextButton.setOnClickListener { | 201 | nextButton.setOnClickListener { |
202 | + editor.remove("third_one") | ||
203 | + editor.remove("c6_2") | ||
204 | + editor.remove("c6_3") | ||
205 | + editor.remove("c6_4") | ||
206 | + editor.remove("c6_5") | ||
207 | + editor.remove("c6_6") | ||
208 | + editor.remove("c6_7") | ||
209 | + editor.commit() | ||
192 | if(elementaryButton.isChecked){ | 210 | if(elementaryButton.isChecked){ |
193 | editor.putInt("c6_2",1); editor.commit();editor.putString("third_one","done");editor.commit() | 211 | editor.putInt("c6_2",1); editor.commit();editor.putString("third_one","done");editor.commit() |
194 | }else if(middleButton.isChecked){ | 212 | }else if(middleButton.isChecked){ | ... | ... |
... | @@ -129,6 +129,19 @@ class InputProfilThirdThreeActivity : AppCompatActivity() { | ... | @@ -129,6 +129,19 @@ class InputProfilThirdThreeActivity : AppCompatActivity() { |
129 | } | 129 | } |
130 | 130 | ||
131 | nextButton.setOnClickListener { | 131 | nextButton.setOnClickListener { |
132 | + editor.remove("third_three") | ||
133 | + editor.remove("c4_11") | ||
134 | + editor.remove("c4_2") | ||
135 | + editor.remove("c4_3") | ||
136 | + editor.remove("c4_4") | ||
137 | + editor.remove("c4_5") | ||
138 | + editor.remove("c4_6") | ||
139 | + editor.remove("c4_7") | ||
140 | + editor.remove("c4_8") | ||
141 | + editor.remove("c4_9") | ||
142 | + editor.remove("c4_10") | ||
143 | + editor.commit() | ||
144 | + | ||
132 | if(nothingButton.isChecked){ editor.putInt("c4_11",1); editor.commit();editor.putString("third_three","done");editor.commit()} | 145 | if(nothingButton.isChecked){ editor.putInt("c4_11",1); editor.commit();editor.putString("third_three","done");editor.commit()} |
133 | if(mipilButton.isChecked){ editor.putInt("c4_2",1); editor.commit();editor.putString("third_three","done");editor.commit()} | 146 | if(mipilButton.isChecked){ editor.putInt("c4_2",1); editor.commit();editor.putString("third_three","done");editor.commit()} |
134 | if(myunjaeButton.isChecked){ editor.putInt("c4_3",1); editor.commit();editor.putString("third_three","done");editor.commit()} | 147 | if(myunjaeButton.isChecked){ editor.putInt("c4_3",1); editor.commit();editor.putString("third_three","done");editor.commit()} | ... | ... |
... | @@ -156,6 +156,13 @@ class InputProfilThirdTwoActivity : AppCompatActivity() { | ... | @@ -156,6 +156,13 @@ class InputProfilThirdTwoActivity : AppCompatActivity() { |
156 | } | 156 | } |
157 | 157 | ||
158 | nextButton.setOnClickListener { | 158 | nextButton.setOnClickListener { |
159 | + editor.remove("third_two") | ||
160 | + editor.remove("c5_6") | ||
161 | + editor.remove("c5_7") | ||
162 | + editor.remove("c5_9") | ||
163 | + editor.remove("c5_5") | ||
164 | + editor.remove("c5_5") | ||
165 | + editor.commit() | ||
159 | if(companyButton.isChecked){ editor.putInt("c5_6",1); editor.commit();editor.putString("third_two","done");editor.commit()} | 166 | if(companyButton.isChecked){ editor.putInt("c5_6",1); editor.commit();editor.putString("third_two","done");editor.commit()} |
160 | if(workerButton.isChecked){ editor.putInt("c5_7",1); editor.commit();editor.putString("third_two","done");editor.commit()} | 167 | if(workerButton.isChecked){ editor.putInt("c5_7",1); editor.commit();editor.putString("third_two","done");editor.commit()} |
161 | if(entireButton.isChecked){ editor.putInt("c5_9",1); editor.commit();editor.putString("third_two","done");editor.commit()} | 168 | if(entireButton.isChecked){ editor.putInt("c5_9",1); editor.commit();editor.putString("third_two","done");editor.commit()} | ... | ... |

25.4 KB
... | @@ -20,19 +20,17 @@ | ... | @@ -20,19 +20,17 @@ |
20 | </LinearLayout> | 20 | </LinearLayout> |
21 | 21 | ||
22 | <LinearLayout | 22 | <LinearLayout |
23 | - android:layout_width="match_parent" | 23 | + android:layout_width="wrap_content" |
24 | android:layout_height="wrap_content" | 24 | android:layout_height="wrap_content" |
25 | - android:layout_weight="3" | ||
26 | android:orientation="vertical"> | 25 | android:orientation="vertical"> |
27 | 26 | ||
28 | <ImageView | 27 | <ImageView |
29 | android:id="@+id/imageView" | 28 | android:id="@+id/imageView" |
30 | - android:layout_width="match_parent" | 29 | + android:layout_width="wrap_content" |
31 | - android:layout_height="match_parent" | 30 | + android:layout_height="wrap_content" |
32 | android:layout_gravity="center" | 31 | android:layout_gravity="center" |
33 | - android:layout_marginLeft="50dp" | 32 | + android:background="@drawable/profile_logo" |
34 | - android:layout_marginRight="50dp" | 33 | + android:scaleType="centerCrop" /> |
35 | - android:background="@drawable/inputlogo" /> | ||
36 | </LinearLayout> | 34 | </LinearLayout> |
37 | 35 | ||
38 | <LinearLayout | 36 | <LinearLayout | ... | ... |
-
Please register or login to post a comment