summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/services/callrecorder/CallRecorderService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/services/callrecorder/CallRecorderService.java b/src/com/android/services/callrecorder/CallRecorderService.java
index 4d53ec790..10e7c7f5b 100644
--- a/src/com/android/services/callrecorder/CallRecorderService.java
+++ b/src/com/android/services/callrecorder/CallRecorderService.java
@@ -20,6 +20,7 @@ import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.media.MediaRecorder;
+import android.net.Uri;
import android.os.IBinder;
import android.os.RemoteException;
import android.os.SystemProperties;
@@ -60,6 +61,9 @@ public class CallRecorderService extends Service {
public CallRecording stopRecording() {
if (getState() == RecorderState.RECORDING) {
stopRecordingInternal();
+ Intent intent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
+ intent.setData(Uri.fromFile(mCurrentRecording.getFile()));
+ sendBroadcast(intent);
return mCurrentRecording;
}
return null;