diff --git a/app/src/main/java/net/sourceforge/opencamera/StorageUtils.java b/app/src/main/java/net/sourceforge/opencamera/StorageUtils.java index 0a22d84accf522d44316a53df1c44340be50935c..8abf1adbd38238b0c0df604fc8a6f39ac3742e27 100644 --- a/app/src/main/java/net/sourceforge/opencamera/StorageUtils.java +++ b/app/src/main/java/net/sourceforge/opencamera/StorageUtils.java @@ -240,6 +240,10 @@ public class StorageUtils { } if( set_last_scanned ) { last_media_scanned = uri; + if (is_new_video) { + Media media = getLatestMedia(is_new_video); + last_media_scanned = (media != null) ? media.uri : uri; + } if( MyDebug.LOG ) Log.d(TAG, "set last_media_scanned to " + last_media_scanned); }