Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim media file #82

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from
Open

Trim media file #82

wants to merge 16 commits into from

Conversation

simonpham
Copy link
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
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
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
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.

None yet

2 participants