commit | c6c3bbfd811b69a20053546f6d7345527206621f | [log] [tgz] |
---|---|---|
author | Jindong <jindong.yue@nxp.com> | Tue Jan 17 14:53:58 2017 +0800 |
committer | fang hui <hui.fang@nxp.com> | Mon Sep 30 13:15:29 2019 +0000 |
tree | 1513f223b2409e247b5ff904fe6fbe4a975b9512 | |
parent | c99d05483001d79291c445c27a66d4c787c4e767 [diff] |
SoundRecorder crash if click start/stop button quickly The stop API: android.media.MediaRecorder.stop will throw IllegalStateException if it is called immediately after start(). The native method stop() will throw RuntimeException before IllegalStateException. So try to catch RuntimeException. Change-Id: Ib32baf16e6fd693af4093365d487a05dab6f104e Signed-off-by: Jindong <jindong.yue@nxp.com>