Dialer: Make recording names sortable
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
diff --git a/java/com/android/dialer/callrecord/impl/CallRecorderService.java b/java/com/android/dialer/callrecord/impl/CallRecorderService.java
index 298e8ad..9b710b5 100644
--- a/java/com/android/dialer/callrecord/impl/CallRecorderService.java
+++ b/java/com/android/dialer/callrecord/impl/CallRecorderService.java
@@ -49,7 +49,7 @@
private MediaRecorder mMediaRecorder = null;
private CallRecording mCurrentRecording = null;
- private SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyMMdd_HHmmssSSS");
+ private SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyyMMdd-HHmmss");
private final ICallRecorderService.Stub mBinder = new ICallRecorderService.Stub() {
@Override
@@ -213,7 +213,7 @@
int formatChoice = getAudioFormatChoice();
String extension = formatChoice == 0 ? ".amr" : ".m4a";
- return number + "_" + timestamp + extension;
+ return "CallRecord_" + timestamp + "_" + number + extension;
}
public static boolean isEnabled(Context context) {