diff options
author | Venkateshwarlu Domakonda <vdomak@codeaurora.org> | 2014-04-17 11:13:34 +0530 |
---|---|---|
committer | Venkateshwarlu Domakonda <vdomak@codeaurora.org> | 2014-04-17 17:53:54 +0530 |
commit | 4830bc8239489c45faa1eaeb18b0773ad8cfec8c (patch) | |
tree | 4913008304a5c83d7d106bbee9468f236f9fe817 /FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java | |
parent | 2a73d76fb46dbef2e5b447f2bd4ea1be30797737 (diff) | |
download | android_hardware_qcom_fm-4830bc8239489c45faa1eaeb18b0773ad8cfec8c.tar.gz android_hardware_qcom_fm-4830bc8239489c45faa1eaeb18b0773ad8cfec8c.tar.bz2 android_hardware_qcom_fm-4830bc8239489c45faa1eaeb18b0773ad8cfec8c.zip |
FMRecord: Fix the issue with wrong toast message
- Wrong message showing for the maximum record time reached.
- Show the message only when maximum file size reached.
Change-Id: I1a2a51c5ccc160d6265b9066206ad2d7d25fc649
Crs-Fixed: 640273
Diffstat (limited to 'FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java')
-rw-r--r-- | FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java b/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java index fc0fc21..57ec428 100644 --- a/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java +++ b/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java @@ -309,9 +309,12 @@ public class FMRecordingService extends Service { Log.d(TAG, "Maximum file size/duration reached, stopping the recording"); stopRecord(); } - // Show the toast. - Toast.makeText(FMRecordingService.this, R.string.FMRecording_reach_size_limit, - Toast.LENGTH_LONG).show(); + if (what == MediaRecorder.MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED) { + // Show the toast. + Toast.makeText(FMRecordingService.this, + R.string.FMRecording_reach_size_limit, + Toast.LENGTH_LONG).show(); + } } } // from MediaRecorder.OnErrorListener |