Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to .m4a extension #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void setFileNameAndPath(){
count++;

mFileName = getString(R.string.default_file_name)
+ "_" + (mDatabase.getCount() + count) + ".mp4";
+ "_" + (mDatabase.getCount() + count) + ".m4a";
mFilePath = Environment.getExternalStorageDirectory().getAbsolutePath();
mFilePath += "/SoundRecorder/" + mFileName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public void renameFileDialog (final int position) {
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
try {
String value = input.getText().toString().trim() + ".mp4";
String value = input.getText().toString().trim() + ".m4a";
rename(position, value);

} catch (Exception e) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/dialog_rename_file.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
android:layout_height="wrap_content" />

<TextView
android:text=".mp4"
android:text=".m4a"
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_media_playback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
android:layout_marginLeft="10dp"
android:layout_marginTop="7dp"
android:layout_marginBottom="7dp"
android:text="file_name.mp4"
android:text="file_name.m4a"
android:textSize="18sp"
android:fontFamily="sans-serif-condensed"/>

Expand Down