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

fixed issue 17 #97

Open
wants to merge 116 commits into
base: master
Choose a base branch
from
Open

fixed issue 17 #97

wants to merge 116 commits into from

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"

private void onPauseRecord(boolean pause) {
if (pause) {
//pause recording
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".

mPauseButton.setCompoundDrawablesWithIntrinsicBounds
(R.drawable.ic_media_play ,0 ,0 ,0);
mRecordingPrompt.setText((String)getString(R.string.resume_recording_button).toUpperCase());
timeWhenPaused = mChronometer.getBase() - SystemClock.elapsedRealtime();
mChronometer.stop();
} else {
//resume recording
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));

@@ -13,6 +13,8 @@
<!-- Toasts -->
<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?

@@ -36,7 +38,7 @@
<string name="dialog_action_no">No</string>

<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