react-native-video-trim 3.0.8 → 3.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -433,7 +433,9 @@ public class VideoTrimModule extends ReactContextBaseJavaModule implements Video
|
|
|
433
433
|
builder.setTitle(cancelTrimmingDialogTitle);
|
|
434
434
|
builder.setCancelable(false);
|
|
435
435
|
builder.setPositiveButton(cancelTrimmingDialogConfirmText, (dialog, which) -> {
|
|
436
|
-
trimmerView
|
|
436
|
+
if (trimmerView != null) {
|
|
437
|
+
trimmerView.onCancelTrimClicked();
|
|
438
|
+
}
|
|
437
439
|
|
|
438
440
|
if (mProgressDialog != null && mProgressDialog.isShowing()) {
|
|
439
441
|
mProgressDialog.dismiss();
|
|
@@ -445,7 +447,9 @@ public class VideoTrimModule extends ReactContextBaseJavaModule implements Video
|
|
|
445
447
|
cancelTrimmingConfirmDialog = builder.create();
|
|
446
448
|
cancelTrimmingConfirmDialog.show();
|
|
447
449
|
} else {
|
|
448
|
-
trimmerView
|
|
450
|
+
if (trimmerView != null) {
|
|
451
|
+
trimmerView.onCancelTrimClicked();
|
|
452
|
+
}
|
|
449
453
|
|
|
450
454
|
if (mProgressDialog != null && mProgressDialog.isShowing()) {
|
|
451
455
|
mProgressDialog.dismiss();
|
|
@@ -465,7 +469,10 @@ public class VideoTrimModule extends ReactContextBaseJavaModule implements Video
|
|
|
465
469
|
|
|
466
470
|
mProgressDialog.setOnShowListener(dialog -> {
|
|
467
471
|
sendEvent(getReactApplicationContext(), "onStartTrimming", null);
|
|
468
|
-
|
|
472
|
+
|
|
473
|
+
if (trimmerView != null) {
|
|
474
|
+
trimmerView.onSaveClicked(progressUpdateInterval);
|
|
475
|
+
}
|
|
469
476
|
});
|
|
470
477
|
|
|
471
478
|
mProgressDialog.show();
|