Skip to content

Trim media file#82

Open
simonpham wants to merge 16 commits intodevelopfrom
s/trim_media
Open

Trim media file#82
simonpham wants to merge 16 commits intodevelopfrom
s/trim_media

Conversation

@simonpham
Copy link
Copy Markdown
Collaborator

#78

@simonpham simonpham added feature-request WIP Mark a PR as "Work in progress" labels Mar 30, 2018
@simonpham simonpham removed the WIP Mark a PR as "Work in progress" label Mar 31, 2018
@simonpham simonpham requested a review from Khang-NT March 31, 2018 17:08

(activity as? OnSubmittedListener)?.onSubmitted(this)
?: Timber.w("Host activity does not implement OnSubmittedListener")
getTrimFragment().validateAndGetBeginEndPostition { beginEndPosition ->
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misleading name begin - end instead of start - duration

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be data class TrimPosition(val startPos: Float, val duration: Float, ...)

}

btnMarkEnd.setOnClickListener {
edEndPos.setText("9999999")
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Magic number
It's hard to understand what is this number, let name it:

const val MAX_DURATION = "99999999"

@simonpham simonpham requested a review from Khang-NT April 1, 2018 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants