after copying from windows to android, no media updated

mp4, jpg file syncronizing from windows itself works well, but when i want to see thru gallary app, because medial update is not done automatically. it does not appear immeadiately, sometimes forever now shown in case of media file, following statement or similar statement should be added after copying file completed

    MediaScannerConnection.scanFile(mContext,
            new String[]{new File (fullFolder, tgtName).toString()}, null, null);

This is apparently a known issue:

If you know how to fix it, please consider filing a pull request.

Looks similar issue but my issue is reverse situation. After creating file in windows, file is sysnced to phone correctly and immediately, it can be found in file explorer app, but media update is not done immediately or never, that measns not be shown in photo gallary app, so i cannot handle it in gallary app. That’s why mediat uri updated required for the file in sync app.