Skip to content

Commit

Permalink
Merge pull request #20226 from wordpress-mobile/gutenberg/video-limit…
Browse files Browse the repository at this point in the history
…-message-in-snackbar

EditPostActivity - Update showVideoDurationLimitWarning to use Snackbar
  • Loading branch information
Gerardo Pacheco authored Feb 21, 2024
2 parents 72e7db7 + 09cc0b5 commit ab225e5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3932,7 +3932,12 @@ public void onMediaModelsCreatedFromOptimizedUris(@NonNull Map<Uri, ? extends Me
}

@Override public void showVideoDurationLimitWarning(@NonNull String fileName) {
ToastUtils.showToast(this, R.string.error_media_video_duration_exceeds_limit, ToastUtils.Duration.LONG);
String message = getString(R.string.error_media_video_duration_exceeds_limit);
WPSnackbar.make(
findViewById(R.id.editor_activity),
message,
Snackbar.LENGTH_LONG
).show();
}

@Override
Expand Down

0 comments on commit ab225e5

Please sign in to comment.