summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/MenuHelper.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2009-09-11 23:43:43 +0800
committerOwen Lin <owenlin@google.com>2009-09-11 23:48:29 +0800
commit4a853fff135f3a1e96fcae06d266a84f63bb4043 (patch)
tree0500734eb9f691df1fd5de9cf30329b84abeddea /src/com/android/camera/MenuHelper.java
parent50c60047bf55be485fbcfa69bd0ff84e542f212a (diff)
downloadLegacyCamera-4a853fff135f3a1e96fcae06d266a84f63bb4043.zip
LegacyCamera-4a853fff135f3a1e96fcae06d266a84f63bb4043.tar.gz
LegacyCamera-4a853fff135f3a1e96fcae06d266a84f63bb4043.tar.bz2
Remove switch menu item in both Camera and Camcorder.
Change-Id: Ic55eb043e78cc6ed7c5fea5d0a88937e964f739e
Diffstat (limited to 'src/com/android/camera/MenuHelper.java')
-rw-r--r--src/com/android/camera/MenuHelper.java22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/com/android/camera/MenuHelper.java b/src/com/android/camera/MenuHelper.java
index 429bd61..9ee5594 100644
--- a/src/com/android/camera/MenuHelper.java
+++ b/src/com/android/camera/MenuHelper.java
@@ -890,28 +890,6 @@ public class MenuHelper {
.show();
}
- static void addSwitchModeMenuItem(
- Menu menu, final Activity activity, boolean switchToVideo) {
- int labelId = switchToVideo
- ? R.string.switch_to_video_lable
- : R.string.switch_to_camera_lable;
- int iconId = switchToVideo
- ? R.drawable.ic_menu_camera_video_view
- : android.R.drawable.ic_menu_camera;
- final String action = switchToVideo
- ? MediaStore.INTENT_ACTION_VIDEO_CAMERA
- : MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA;
- MenuItem item = menu.add(Menu.NONE, Menu.NONE,
- POSITION_SWITCH_CAMERA_MODE, labelId)
- .setOnMenuItemClickListener(new OnMenuItemClickListener() {
- public boolean onMenuItemClick(MenuItem item) {
- startCameraActivity(activity, action);
- return true;
- }
- });
- item.setIcon(iconId);
- }
-
private static void startCameraActivity(Activity activity, String action) {
Intent intent = new Intent(action);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);