Skip to content

Commit

Permalink
EditPostActivity - Update showVideoDurationLimitWarning to display me…
Browse files Browse the repository at this point in the history
…ssage in Snackbar instead of a Toast, since there's a limitation of two lines max starting in Android 12
  • Loading branch information
Gerardo committed Feb 21, 2024
1 parent 72e7db7 commit 09cc0b5
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 09cc0b5

Please sign in to comment.