Skip to content

Commit

Permalink
call recording: fix filename for numbers containing asterisk
Browse files Browse the repository at this point in the history
Change-Id: Iddbc7d24ce9c9baf8a0ee50181f300483b0b2efc
  • Loading branch information
nadlabak authored and Quarx2k committed Jan 7, 2013
1 parent b99935a commit 97824ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/android/phone/PhoneUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,8 @@ static void startRecording(String address, String inOut) {
// name recording filename based on call data
Calendar cl = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd-HHmmss-(");
String newRecordingName = dirName + "/" + sdf.format(cl.getTime()) + address + ")-" + inOut + ".m4a";
String newRecordingName = dirName + "/" + sdf.format(cl.getTime()) +
address.replace("*","x") + ")-" + inOut + ".m4a";
recording.renameTo(new File(newRecordingName));
recorder.setOutputFile(newRecordingName);
try {
Expand Down

0 comments on commit 97824ac

Please sign in to comment.