diff --git a/README.md b/README.md index f02a62f..1610bbb 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ repositories { } dependencies { - compile 'com.github.adrielcafe:AndroidAudioRecorder:0.0.8' + compile 'com.github.adrielcafe:AndroidAudioRecorder:0.0.9' } ``` @@ -65,6 +65,7 @@ dependencies { - [X] Pause recording - [ ] Skip silence - [ ] Animations +- [ ] Landscape screen orientation (only supports portrait at the moment) ## Dependencies * [OmRecorder](https://github.com/kailash09dabhi/OmRecorder) diff --git a/lib/src/main/AndroidManifest.xml b/lib/src/main/AndroidManifest.xml index 7fe809c..663bfed 100644 --- a/lib/src/main/AndroidManifest.xml +++ b/lib/src/main/AndroidManifest.xml @@ -8,7 +8,8 @@ android:allowBackup="true"> + android:theme="@style/Theme.AppCompat" + android:screenOrientation="portrait"/> \ No newline at end of file diff --git a/lib/src/main/java/cafe/adriel/androidaudiorecorder/AudioRecorderActivity.java b/lib/src/main/java/cafe/adriel/androidaudiorecorder/AudioRecorderActivity.java index 7778d8d..ffcfd95 100644 --- a/lib/src/main/java/cafe/adriel/androidaudiorecorder/AudioRecorderActivity.java +++ b/lib/src/main/java/cafe/adriel/androidaudiorecorder/AudioRecorderActivity.java @@ -156,7 +156,7 @@ public boolean onCreateOptionsMenu(Menu menu) { public boolean onOptionsItemSelected(MenuItem item) { int i = item.getItemId(); if (i == android.R.id.home) { - onBackPressed(); + finish(); } else if (i == R.id.action_save) { selectAudio(); }