fix(liveroom-create): 경고 제거
This commit is contained in:
		@@ -53,9 +53,16 @@ class LiveRoomCreateActivity : BaseActivity<ActivityLiveRoomCreateBinding>(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private val datePickerDialogListener =
 | 
					    private val datePickerDialogListener =
 | 
				
			||||||
        DatePickerDialog.OnDateSetListener { _, year, monthOfYear, dayOfMonth ->
 | 
					        DatePickerDialog.OnDateSetListener { _, year, monthOfYear, dayOfMonth ->
 | 
				
			||||||
            viewModel.beginDate = String.format("%d-%02d-%02d", year, monthOfYear + 1, dayOfMonth)
 | 
					            viewModel.beginDate = String.format(
 | 
				
			||||||
 | 
					                Locale.getDefault(),
 | 
				
			||||||
 | 
					                "%d-%02d-%02d",
 | 
				
			||||||
 | 
					                year,
 | 
				
			||||||
 | 
					                monthOfYear + 1,
 | 
				
			||||||
 | 
					                dayOfMonth,
 | 
				
			||||||
 | 
					            )
 | 
				
			||||||
            viewModel.setReservationDate(
 | 
					            viewModel.setReservationDate(
 | 
				
			||||||
                String.format(
 | 
					                String.format(
 | 
				
			||||||
 | 
					                    Locale.getDefault(),
 | 
				
			||||||
                    "%d.%02d.%02d",
 | 
					                    "%d.%02d.%02d",
 | 
				
			||||||
                    year,
 | 
					                    year,
 | 
				
			||||||
                    monthOfYear + 1,
 | 
					                    monthOfYear + 1,
 | 
				
			||||||
@@ -66,7 +73,12 @@ class LiveRoomCreateActivity : BaseActivity<ActivityLiveRoomCreateBinding>(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private val timePickerDialogListener =
 | 
					    private val timePickerDialogListener =
 | 
				
			||||||
        TimePickerDialog.OnTimeSetListener { _, hourOfDay, minute ->
 | 
					        TimePickerDialog.OnTimeSetListener { _, hourOfDay, minute ->
 | 
				
			||||||
            val timeString = String.format("%02d:%02d", hourOfDay, minute)
 | 
					            val timeString = String.format(
 | 
				
			||||||
 | 
					                Locale.getDefault(),
 | 
				
			||||||
 | 
					                "%02d:%02d",
 | 
				
			||||||
 | 
					                hourOfDay,
 | 
				
			||||||
 | 
					                minute
 | 
				
			||||||
 | 
					            )
 | 
				
			||||||
            viewModel.beginTime = timeString
 | 
					            viewModel.beginTime = timeString
 | 
				
			||||||
            viewModel.setReservationTime(timeString.convertDateFormat("HH:mm", "a hh:mm"))
 | 
					            viewModel.setReservationTime(timeString.convertDateFormat("HH:mm", "a hh:mm"))
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -382,7 +394,7 @@ class LiveRoomCreateActivity : BaseActivity<ActivityLiveRoomCreateBinding>(
 | 
				
			|||||||
                    } else {
 | 
					                    } else {
 | 
				
			||||||
                        try {
 | 
					                        try {
 | 
				
			||||||
                            viewModel.password = it.toString()
 | 
					                            viewModel.password = it.toString()
 | 
				
			||||||
                        } catch (e: NumberFormatException) {
 | 
					                        } catch (_: NumberFormatException) {
 | 
				
			||||||
                            binding.etRoomPassword.setText(it.substring(0, it.length - 1))
 | 
					                            binding.etRoomPassword.setText(it.substring(0, it.length - 1))
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
@@ -755,7 +767,7 @@ class LiveRoomCreateActivity : BaseActivity<ActivityLiveRoomCreateBinding>(
 | 
				
			|||||||
            )
 | 
					            )
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (viewModel.menuList.size > 0) {
 | 
					        if (viewModel.menuList.isNotEmpty()) {
 | 
				
			||||||
            binding.llSelectMenu2.setBackgroundResource(R.drawable.bg_round_corner_6_7_13181b)
 | 
					            binding.llSelectMenu2.setBackgroundResource(R.drawable.bg_round_corner_6_7_13181b)
 | 
				
			||||||
            binding.tvSelectMenu2.setTextColor(
 | 
					            binding.tvSelectMenu2.setTextColor(
 | 
				
			||||||
                ContextCompat.getColor(
 | 
					                ContextCompat.getColor(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user