summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Wang <jaywang@codeaurora.org>2016-03-08 18:13:04 -0800
committerCamera Software Integration <camswint@localhost>2016-03-11 11:35:11 +0530
commit7e8f0962e5002e20aa0e40dab0e41cca5e1b8628 (patch)
treeaf406067c785e2cf9134cc477b2c2b29646ca0cd
parent905b5753c8d577e1bf56bdcab4db36e573eb54f5 (diff)
downloadandroid_packages_apps_Snap-7e8f0962e5002e20aa0e40dab0e41cca5e1b8628.tar.gz
android_packages_apps_Snap-7e8f0962e5002e20aa0e40dab0e41cca5e1b8628.tar.bz2
android_packages_apps_Snap-7e8f0962e5002e20aa0e40dab0e41cca5e1b8628.zip
SnapdragonCamera: Add beautification toast message to resource file
Add beautification toast message to resource file Change-Id: I73f3619349734399c9d10c1ed4cb6b23c8e9d077 CRs-Fixed: 979121
-rw-r--r--res/values/qcomstrings.xml1
-rw-r--r--src/com/android/camera/TsMakeupManager.java7
2 files changed, 6 insertions, 2 deletions
diff --git a/res/values/qcomstrings.xml b/res/values/qcomstrings.xml
index b58ba702f..7cca245e1 100644
--- a/res/values/qcomstrings.xml
+++ b/res/values/qcomstrings.xml
@@ -906,6 +906,7 @@
<string name="text_tsmakeup_alert_msg">The beautification must turn on Face Detection, Continue or Quit?</string>
<string name="text_tsmakeup_alert_continue">Continue</string>
<string name="text_tsmakeup_alert_quit">Quit</string>
+ <string name="text_tsmakeup_beautify_toast" translatable="true">Beautify</string>
<string name="all_in_focus">All in Focus</string>
<string name="refocus_toast">To re-focus last photo, tap here</string>
diff --git a/src/com/android/camera/TsMakeupManager.java b/src/com/android/camera/TsMakeupManager.java
index 391bf791b..9fadada98 100644
--- a/src/com/android/camera/TsMakeupManager.java
+++ b/src/com/android/camera/TsMakeupManager.java
@@ -313,8 +313,11 @@ public class TsMakeupManager implements OnSeekBarChangeListener {
showSingleView(pref.getValue());
mUI.adjustOrientation();
- if(!pref.getValue().equalsIgnoreCase("off"))
- Toast.makeText(mActivity, "Beautify", Toast.LENGTH_SHORT).show();
+ if(!pref.getValue().equalsIgnoreCase("off")) {
+ String toast = mActivity.getString(
+ R.string.text_tsmakeup_beautify_toast);
+ Toast.makeText(mActivity, toast, Toast.LENGTH_SHORT).show();
+ }
}
}
return true;