Handover providers such as NFC may move the file in the filesystem
(out of /bluetooth), hence it's better not to scan them here.
Change-Id: Ic374c5ae880cb65e2d8a9ce615115b51fdc29353
private boolean shouldScanFile(int arrayPos) {
BluetoothOppShareInfo info = mShares.get(arrayPos);
return BluetoothShare.isStatusSuccess(info.mStatus)
- && info.mDirection == BluetoothShare.DIRECTION_INBOUND && !info.mMediaScanned;
+ && info.mDirection == BluetoothShare.DIRECTION_INBOUND && !info.mMediaScanned &&
+ info.mConfirm != BluetoothShare.USER_CONFIRMATION_HANDOVER_CONFIRMED;
}
// Run in a background thread at boot.