Skip to content

Commit

Permalink
0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
adrielcafe committed Aug 15, 2016
1 parent 9e61080 commit 82848a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ repositories {
}
dependencies {
compile 'com.github.adrielcafe:AndroidAudioRecorder:0.0.3'
compile 'com.github.adrielcafe:AndroidAudioRecorder:0.0.4'
}
```

## TODO
- [ ] Pause audio
- [ ] Play recorded audio
- [ ] Tint images to black when background color is too bright
- [X] Tint images to black when background color is too bright

## Dependencies
* [OmRecorder](https://github.com/kailash09dabhi/OmRecorder)
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ android {
dependencies {
compile 'com.android.support:appcompat-v7:24.1.1'
compile project(':lib')
// compile 'com.github.adrielcafe:AndroidAudioRecorder:0.0.3'
// compile 'com.github.adrielcafe:AndroidAudioRecorder:0.0.4'
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
Expand Down Expand Up @@ -88,13 +89,6 @@ protected void onDestroy() {
super.onDestroy();
}

@Override
public void onBackPressed() {
setResult(RESULT_CANCELED);
stopRecoding();
super.onBackPressed();
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.audio_recorder, menu);
Expand Down Expand Up @@ -154,7 +148,9 @@ public void run() {

private void stopRecoding() {
isRecording = false;
selectMenuItem.setVisible(true);
if(!isFinishing()) {
selectMenuItem.setVisible(true);
}
recordView.setImageResource(R.drawable.ic_play);

if (recorder != null) {
Expand Down

0 comments on commit 82848a6

Please sign in to comment.