summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2009-12-07 11:03:17 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-12-07 11:03:17 -0800
commitb8341cf7c8b0b4af14ea87a4c2335e28865adff1 (patch)
tree1cac06cd89253fc26cb610848cb4ddc2b1b9c4be /media/java
parent8e6d79e2b570d73b620a4f5a98d461329e5f2477 (diff)
parent6d42d80653f2c41f3e72a878a1d9a6f9693b89f7 (diff)
downloadframeworks_base-b8341cf7c8b0b4af14ea87a4c2335e28865adff1.zip
frameworks_base-b8341cf7c8b0b4af14ea87a4c2335e28865adff1.tar.gz
frameworks_base-b8341cf7c8b0b4af14ea87a4c2335e28865adff1.tar.bz2
am 6d42d806: Merge change I9cc489a2 into eclair
Merge commit '6d42d80653f2c41f3e72a878a1d9a6f9693b89f7' into eclair-mr2 * commit '6d42d80653f2c41f3e72a878a1d9a6f9693b89f7': Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/AudioRecord.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/media/java/android/media/AudioRecord.java b/media/java/android/media/AudioRecord.java
index 7a47157..c48eaad 100644
--- a/media/java/android/media/AudioRecord.java
+++ b/media/java/android/media/AudioRecord.java
@@ -498,8 +498,9 @@ public class AudioRecord
// start recording
synchronized(mRecordingStateLock) {
- native_start();
- mRecordingState = RECORDSTATE_RECORDING;
+ if (native_start() == SUCCESS) {
+ mRecordingState = RECORDSTATE_RECORDING;
+ }
}
}
@@ -764,7 +765,7 @@ public class AudioRecord
private native final void native_release();
- private native final void native_start();
+ private native final int native_start();
private native final void native_stop();