From 0bf98591bf11c4b0545a297dc2223cf4758acf64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adriel=20Caf=C3=A9?= Date: Wed, 14 Sep 2016 10:19:33 -0300 Subject: [PATCH] 0.0.9 Fix #6 --- README.md | 3 ++- lib/src/main/AndroidManifest.xml | 3 ++- .../adriel/androidaudiorecorder/AudioRecorderActivity.java | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) 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(); }