Skip to content

Conversation

@hyperov
Copy link

@hyperov hyperov commented Apr 28, 2018

implement pause/resume feature in recording

// finalMovie.addTrack(new AppendTrack((Track) tracks));
// } catch (IOException e) {
// e.printStackTrace();
// }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove "dead code"

mRecordingService.pauseRecording();
mPauseButton.setCompoundDrawablesWithIntrinsicBounds
(R.drawable.ic_media_play ,0 ,0 ,0);
mRecordingPrompt.setText((String)getString(R.string.resume_recording_button).toUpperCase());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug: change mPauseButton instead of mRecordingPrompt. set mRecordingPrompt text to "Paused".

mRecordingService.resumeRecording();
mPauseButton.setCompoundDrawablesWithIntrinsicBounds
(R.drawable.ic_media_pause ,0 ,0 ,0);
mRecordingPrompt.setText((String)getString(R.string.pause_recording_button).toUpperCase());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug: change mPauseButton instead of mRecordingPrompt. add mRecordingPrompt.setText(getString(R.string.record_in_progress));

<string name="toast_recording_start">Recording started</string>
<string name="toast_recording_finish">Recording saved to</string>
<string name="toast_recording_paused">Recording paused</string>
<string name="toast_recording_resumed">Recording resumed</string>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The string toast_recording_resumed is not used anywhere. Did you forget to add a toast?

@hyperov
Copy link
Author

hyperov commented Aug 21, 2018

hi @naXa777
thank you for your comments.
i fixed the bugs,and changes pause button to FAB as it seems more suitable

<orderEntry type="library" exported="" name="Gradle: com.melnykov:floatingactionbutton-1.1.0" level="project" />
<orderEntry type="library" exported="" name="Gradle: com.android.support:appcompat-v7-21.0.3" level="project" />
<orderEntry type="library" exported="" name="Gradle: com.android.support:support-v4-21.0.3" level="project" />
<orderEntry type="library" exported="" name="Gradle: com.android.support:support-annotations:21.0.3@jar" level="project" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seem like spurious changes?


<string name="no_saved_recordings_message">No saved recordings</string>
<string name="pause_recording_button">Pause</string>
<string name="pause_recording_button">Paused</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be Pause or Paused?

Jantzilla and others added 28 commits April 20, 2019 21:57
* fix Travis CI pipeline 👷
* Update build tools to 29.0.0
fixes issue dkim0419#25 

* `*.tmp` file is now stored in /storage/emulated/0/Android/data/by.naxa.soundrecorder/cache/SoundRecorder.by/*
* new method `createDirectory` is created in `Paths` to create directory
* optimized imports
add template google-services.json
add leakcanary library to `dev` build type
use template google-services.json
…-to-firebase

# Conflicts:
#	app/src/main/java/by/naxa/soundrecorder/SoundRecorderApplication.java
fixes dkim0419#38
* add intent for other apps to use the recorder
* Arabic (EG) by AhmadAyman99
* Persian by mahdi takrim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants