Skip to content

Commit

Permalink
ui bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowtham committed Jul 26, 2020
1 parent f57d01b commit 2c17b31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ startActivityForResult(intent,TrimmerConstants.REQ_CODE_VIDEO_TRIMMER);
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == TrimmerConstants.REQ_CODE_VIDEO_TRIMMER && data != null) {
/* //checking result video duration if it needed
if (TrimmerUtils.getVideoDuration(this,data.getData())<=30){
Toast.makeText(this,"Video should be larger than 30 secs",Toast.LENGTH_SHORT).show();
return;
}*/
Uri uri = Uri.parse(data.getStringExtra(TrimmerConstants.TRIMMED_VIDEO_PATH));
Log.d(TAG,"Trimmed path:: "+uri);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected void onActivityResult(int requestCode, int resultCode, @Nullable Inten
videoView.requestFocus();
videoView.start();
}else if (requestCode == REQUEST_TAKE_VIDEO && resultCode == RESULT_OK) {
/* //check result video duration if it needed
/* //check video duration if needed
if (TrimmerUtils.getVideoDuration(this,data.getData())<=30){
Toast.makeText(this,"Video should be larger than 30 sec",Toast.LENGTH_SHORT).show();
return;
Expand Down

0 comments on commit 2c17b31

Please sign in to comment.