-
Notifications
You must be signed in to change notification settings - Fork 807
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
base: master
Are you sure you want to change the base?
fixed issue 17 #97
Conversation
1-make recording service a bound service to deliver pause and resume. 2-integrate with open source library mp4 parser to append multiple files to one. //issues : 1-file naming increment issue.
2-handle case : user press stop after pause
+ update build tools + update dependencies
…ted) with android.support.design.widget.FloatingActionButton
+ Do not start chronometer if the recording is not going to be saved (because of I/O error)
// finalMovie.addTrack(new AppendTrack((Track) tracks)); | ||
// } catch (IOException e) { | ||
// e.printStackTrace(); | ||
// } |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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?
…ut to implement Material Design tabs
… fixes occasional application crashes when RecordingFragment is recreated while RecordingService is recording
change mRecordingPrompt properly.
texts minor fixes
hi @naXa777 |
MainActivity may be exercised by the monkey; Update gradle build plugin.
<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" /> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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?
* 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
Added Adaptive Icons
add template google-services.json
add leakcanary library to `dev` build type
use template google-services.json
Successfully added night mode
…-to-firebase # Conflicts: # app/src/main/java/by/naxa/soundrecorder/SoundRecorderApplication.java
…rebase Migrate to Firebase Crashlytics
fixes dkim0419#38 * add intent for other apps to use the recorder
* Arabic (EG) by AhmadAyman99 * Persian by mahdi takrim
implement pause/resume feature in recording