summaryrefslogtreecommitdiffstats
path: root/FMRecord
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-04-22 15:36:40 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2014-04-22 15:36:40 -0700
commit69e94c64b880f69ffec73e468e146fee3ef40bd9 (patch)
treef46b293a6dd623883d78fc47879f3a3ce10a5564 /FMRecord
parent656be2ed475913ef579d1b4929a357ce954f0326 (diff)
parent8fd366b53bafdb99845bec9dcd4eb0b45ab48ad8 (diff)
downloadandroid_hardware_qcom_fm-69e94c64b880f69ffec73e468e146fee3ef40bd9.tar.gz
android_hardware_qcom_fm-69e94c64b880f69ffec73e468e146fee3ef40bd9.tar.bz2
android_hardware_qcom_fm-69e94c64b880f69ffec73e468e146fee3ef40bd9.zip
Merge "FMRecord: Add Chinese language strings resource"
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 7c89a0c..62f4a94 100644
--- a/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java
+++ b/FMRecord/src/com/codeaurora/fmrecording/FMRecordingService.java
@@ -423,7 +423,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) {
@@ -475,7 +475,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;
}