Skip to content

Commit 97824ac

Browse files
nadlabakQuarx2k
authored andcommitted
call recording: fix filename for numbers containing asterisk
Change-Id: Iddbc7d24ce9c9baf8a0ee50181f300483b0b2efc
1 parent b99935a commit 97824ac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/com/android/phone/PhoneUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2132,7 +2132,8 @@ static void startRecording(String address, String inOut) {
21322132
// name recording filename based on call data
21332133
Calendar cl = Calendar.getInstance();
21342134
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd-HHmmss-(");
2135-
String newRecordingName = dirName + "/" + sdf.format(cl.getTime()) + address + ")-" + inOut + ".m4a";
2135+
String newRecordingName = dirName + "/" + sdf.format(cl.getTime()) +
2136+
address.replace("*","x") + ")-" + inOut + ".m4a";
21362137
recording.renameTo(new File(newRecordingName));
21372138
recorder.setOutputFile(newRecordingName);
21382139
try {

0 commit comments

Comments
 (0)