-
Notifications
You must be signed in to change notification settings - Fork 61
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
base: develop
Are you sure you want to change the base?
Trim media file #82
Conversation
|
||
(activity as? OnSubmittedListener)?.onSubmitted(this) | ||
?: Timber.w("Host activity does not implement OnSubmittedListener") | ||
getTrimFragment().validateAndGetBeginEndPostition { beginEndPosition -> |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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"
#78