fix(liveroom-create): 경고 제거
This commit is contained in:
		@@ -53,9 +53,16 @@ class LiveRoomCreateActivity : BaseActivity<ActivityLiveRoomCreateBinding>(
 | 
			
		||||
 | 
			
		||||
    private val datePickerDialogListener =
 | 
			
		||||
        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(
 | 
			
		||||
                String.format(
 | 
			
		||||
                    Locale.getDefault(),
 | 
			
		||||
                    "%d.%02d.%02d",
 | 
			
		||||
                    year,
 | 
			
		||||
                    monthOfYear + 1,
 | 
			
		||||
@@ -66,7 +73,12 @@ class LiveRoomCreateActivity : BaseActivity<ActivityLiveRoomCreateBinding>(
 | 
			
		||||
 | 
			
		||||
    private val timePickerDialogListener =
 | 
			
		||||
        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.setReservationTime(timeString.convertDateFormat("HH:mm", "a hh:mm"))
 | 
			
		||||
        }
 | 
			
		||||
@@ -382,7 +394,7 @@ class LiveRoomCreateActivity : BaseActivity<ActivityLiveRoomCreateBinding>(
 | 
			
		||||
                    } else {
 | 
			
		||||
                        try {
 | 
			
		||||
                            viewModel.password = it.toString()
 | 
			
		||||
                        } catch (e: NumberFormatException) {
 | 
			
		||||
                        } catch (_: NumberFormatException) {
 | 
			
		||||
                            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.tvSelectMenu2.setTextColor(
 | 
			
		||||
                ContextCompat.getColor(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user