aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2016-06-30 10:49:26 +0200
committerChristian Schneppe <christian@pix-art.de>2016-06-30 10:49:26 +0200
commite21b394287d754eef0dae03a53c97c26c8d04887 (patch)
tree1c249285a54fb9bc96a41f273d78735c7636ef48 /src/main/java/eu/siacs/conversations
parent702c4cbe76377c64d45b7d35c8a1ad52efd73392 (diff)
use variables from filebackend
Diffstat (limited to 'src/main/java/eu/siacs/conversations')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/RecordingActivity.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/RecordingActivity.java b/src/main/java/eu/siacs/conversations/ui/RecordingActivity.java
index f0f146047..ac012cc03 100644
--- a/src/main/java/eu/siacs/conversations/ui/RecordingActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/RecordingActivity.java
@@ -23,6 +23,7 @@ import java.util.Locale;
import eu.siacs.conversations.Config;
import eu.siacs.conversations.R;
+import eu.siacs.conversations.persistance.FileBackend;
public class RecordingActivity extends Activity implements View.OnClickListener {
@@ -114,7 +115,7 @@ public class RecordingActivity extends Activity implements View.OnClickListener
private File getOutputFile() {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd_HHmmssSSS", Locale.US);
return new File(Environment.getExternalStorageDirectory().getAbsolutePath().toString()
- + "/Pix-Art Messenger/audios/"
+ + FileBackend.getConversationsAudioDirectory() + "/"
+ dateFormat.format(new Date())
+ ".m4a");
}