summaryrefslogtreecommitdiffstats
path: root/FMRecord
diff options
context:
space:
mode:
authorVenkateshwarlu Domakonda <vdomak@codeaurora.org>2014-04-17 13:13:11 +0530
committerVenkateshwarlu Domakonda <vdomak@codeaurora.org>2014-04-17 13:18:52 +0530
commit8fd366b53bafdb99845bec9dcd4eb0b45ab48ad8 (patch)
tree3620323f00e39d3348e7301770a06f7e92fb1d99 /FMRecord
parent2a73d76fb46dbef2e5b447f2bd4ea1be30797737 (diff)
downloadandroid_hardware_qcom_fm-8fd366b53bafdb99845bec9dcd4eb0b45ab48ad8.tar.gz
android_hardware_qcom_fm-8fd366b53bafdb99845bec9dcd4eb0b45ab48ad8.tar.bz2
android_hardware_qcom_fm-8fd366b53bafdb99845bec9dcd4eb0b45ab48ad8.zip
FMRecord: Add Chinese language strings resource
- Added string resources for "Unable to save recorded audio" and "Size limit reached" Change-Id: I9a7f9a277daed584bf8d5515e535ec0f752a72e8 CRs-Fixed: 638564
Diffstat (limited to 'FMRecord')
-rw-r--r--FMRecord/res/values-zh-rCN/strings.xml2
-rw-r--r--FMRecord/res/values/strings.xml1
-rw-r--r--FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java4
3 files changed, 5 insertions, 2 deletions
diff --git a/FMRecord/res/values-zh-rCN/strings.xml b/FMRecord/res/values-zh-rCN/strings.xml
index a55ae4b..660f743 100644
--- a/FMRecord/res/values-zh-rCN/strings.xml
+++ b/FMRecord/res/values-zh-rCN/strings.xml
@@ -41,4 +41,6 @@
<!-- all recordings will show up in the media database in a playlist with this name -->
<string name="audio_db_playlist_name">FM 录音</string>
<string name="fm_record_progress">FM 录音进行中</string>
+ <string name="FMRecording_reach_size_limit">已到达最长限制.</string>
+ <string name="unable_to_store">无法保存已录音频</string>
</resources>
diff --git a/FMRecord/res/values/strings.xml b/FMRecord/res/values/strings.xml
index ff11d19..244d41c 100644
--- a/FMRecord/res/values/strings.xml
+++ b/FMRecord/res/values/strings.xml
@@ -47,4 +47,5 @@
<string name="audio_db_playlist_name">FM recordings</string>
<string name="save_record_file">FM Recorded file saved to "<xliff:g id="record_file">%1$s</xliff:g>"</string>
<string name="fm_record_progress">FM Recording in progress</string>
+ <string name="unable_to_store">Unable to save recorded audio</string>
</resources>
diff --git a/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java b/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java
index fc0fc21..a5e899c 100644
--- a/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java
+++ b/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java
@@ -417,7 +417,7 @@ public class FMRecordingService extends Service {
Log.d(TAG, "ContentURI: " + base);
Uri result = resolver.insert(base, cv);
if (result == null) {
- Toast.makeText(this, "Unable to save recorded audio", Toast.LENGTH_SHORT).show();
+ Toast.makeText(this, R.string.unable_to_store, Toast.LENGTH_SHORT).show();
return null;
}
if (getPlaylistId(res) == -1) {
@@ -469,7 +469,7 @@ public class FMRecordingService extends Service {
cv.put(MediaStore.Audio.Playlists.NAME, res.getString(R.string.audio_db_playlist_name));
Uri uri = resolver.insert(MediaStore.Audio.Playlists.getContentUri("external"), cv);
if (uri == null) {
- Toast.makeText(this, "Unable to save recorded audio", Toast.LENGTH_SHORT).show();
+ Toast.makeText(this, R.string.unable_to_store, Toast.LENGTH_SHORT).show();
}
return uri;
}