diff options
author | John Reck <jreck@google.com> | 2013-05-16 13:50:50 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2013-05-16 13:50:50 -0700 |
commit | 5e737ffa3eb106518e03d1a9b4d00a58c73640ee (patch) | |
tree | ded3378adaccbadb95106cb967319b39bbba5f84 /src/com/android/gallery3d/filtershow/editors | |
parent | 2c81bea7d026c29ad2b0b95031b2a399b88886f5 (diff) | |
download | android_packages_apps_Snap-5e737ffa3eb106518e03d1a9b4d00a58c73640ee.tar.gz android_packages_apps_Snap-5e737ffa3eb106518e03d1a9b4d00a58c73640ee.tar.bz2 android_packages_apps_Snap-5e737ffa3eb106518e03d1a9b4d00a58c73640ee.zip |
toUpper() some strings
Bug: 8791729
Change-Id: Icd05eb2d33b83fb589470ef9d98585f919f14deb
Diffstat (limited to 'src/com/android/gallery3d/filtershow/editors')
-rw-r--r-- | src/com/android/gallery3d/filtershow/editors/Editor.java | 8 | ||||
-rw-r--r-- | src/com/android/gallery3d/filtershow/editors/SwapButton.java | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/com/android/gallery3d/filtershow/editors/Editor.java b/src/com/android/gallery3d/filtershow/editors/Editor.java index e760ae58c..02bbcde4d 100644 --- a/src/com/android/gallery3d/filtershow/editors/Editor.java +++ b/src/com/android/gallery3d/filtershow/editors/Editor.java @@ -59,6 +59,14 @@ public class Editor implements OnSeekBarChangeListener, SwapButton.SwapButtonLis public static byte SHOW_VALUE_OFF = 0; public static byte SHOW_VALUE_INT = 1; + public static void hackFixStrings(Menu menu) { + int count = menu.size(); + for (int i = 0; i < count; i++) { + MenuItem item = menu.getItem(i); + item.setTitle(item.getTitle().toString().toUpperCase()); + } + } + public String calculateUserMessage(Context context, String effectName, Object parameterValue) { return effectName.toUpperCase() + " " + parameterValue; } diff --git a/src/com/android/gallery3d/filtershow/editors/SwapButton.java b/src/com/android/gallery3d/filtershow/editors/SwapButton.java index d8f3fc3a7..bb4432e28 100644 --- a/src/com/android/gallery3d/filtershow/editors/SwapButton.java +++ b/src/com/android/gallery3d/filtershow/editors/SwapButton.java @@ -51,14 +51,6 @@ public class SwapButton extends Button implements GestureDetector.OnGestureListe mListener = listener; } - public Menu getMenu() { - return mMenu; - } - - public void setMenu(Menu menu) { - mMenu = menu; - } - public boolean onTouchEvent(MotionEvent me) { if (!mDetector.onTouchEvent(me)) { return super.onTouchEvent(me); |