diff options
| author | nicolasroard <nicolasroard@google.com> | 2013-09-11 17:56:45 -0700 |
|---|---|---|
| committer | nicolasroard <nicolasroard@google.com> | 2013-09-11 18:10:00 -0700 |
| commit | 521e94c88a371981142312c777a9842a55338901 (patch) | |
| tree | f28ae687a3643005d2a0c5236ac59a25134a6687 | |
| parent | 9346e7fdd448c5ddfc3e47c067618ca0ac9c72fa (diff) | |
| download | android_packages_apps_Gallery2-521e94c88a371981142312c777a9842a55338901.tar.gz android_packages_apps_Gallery2-521e94c88a371981142312c777a9842a55338901.tar.bz2 android_packages_apps_Gallery2-521e94c88a371981142312c777a9842a55338901.zip | |
Add custom border text
bug:10705772
Change-Id: Idca8cb3179bf9ecc1b6eaef109f79077cf15ec3c
| -rw-r--r-- | res/values/filtershow_strings.xml | 2 | ||||
| -rw-r--r-- | src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/res/values/filtershow_strings.xml b/res/values/filtershow_strings.xml index 75e23b0fc..4093c4892 100644 --- a/res/values/filtershow_strings.xml +++ b/res/values/filtershow_strings.xml @@ -38,6 +38,8 @@ <string name="saved">Saved</string> <!-- Text for filters that apply a border to a picture [CHAR LIMIT=20] --> <string name="borders" msgid="4461692156695893616">Borders</string> + <!-- Text for the custom border filter [CHAR LIMIT=20] --> + <string name="custom_border">Custom</string> <!-- actionbar menu --> diff --git a/src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java index 4f625d7b4..516292749 100644 --- a/src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java +++ b/src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java @@ -126,7 +126,10 @@ public class FilterColorBorderRepresentation extends FilterRepresentation { @Override public int getTextId() { - return R.string.borders; + if (super.getTextId() == 0) { + return R.string.borders; + } + return super.getTextId(); } public int getColor() { |
