Open
Conversation
jusang3057
reviewed
Jul 15, 2025
|
|
||
| private val lapList = mutableListOf<LapItem>() | ||
|
|
||
| class LapViewHolder(View: View) : RecyclerView.ViewHolder(View) { |
There was a problem hiding this comment.
네이밍 컨밴션 지켜주세요(View: View -> view: View)
|
|
||
| fun clearLaps() { | ||
| lapList.clear() | ||
| notifyDataSetChanged() |
There was a problem hiding this comment.
notifyItemRangeRemoved()를 사용하시면 좋습니다.
| startPauseButton = findViewById(R.id.button_start_pause) | ||
| stopButton = findViewById(R.id.button_stop) | ||
| lapButton = findViewById(R.id.button_lap) | ||
| lapRecyclerView = findViewById(R.id.lap_recyclerview) |
| private fun nowTime(ms: Long): String { | ||
| val minutes = (ms / 60000).toInt() | ||
| val seconds = ((ms % 60000) / 1000).toInt() | ||
| val millseconds = ((ms % 1000) / 10).toInt() |
| isRunning = true | ||
| startPauseButton.text = getString(R.string.text_pause) | ||
|
|
||
| timeJob = coroutineScope.launch { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.