summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/MenuHelper.java
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-18 17:39:48 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-18 17:39:48 -0700
commitde365d87520c97d6b1636442e6b5c82a3e036f29 (patch)
treeab6ea60037b29e6498aa4e29dbfe92b4d014c3f7 /src/com/android/camera/MenuHelper.java
parent8d0dd0e2ee9a9f8d729ed96597102777cf14701f (diff)
downloadLegacyCamera-de365d87520c97d6b1636442e6b5c82a3e036f29.zip
LegacyCamera-de365d87520c97d6b1636442e6b5c82a3e036f29.tar.gz
LegacyCamera-de365d87520c97d6b1636442e6b5c82a3e036f29.tar.bz2
auto import from //branches/cupcake_rel/...@140373
Diffstat (limited to 'src/com/android/camera/MenuHelper.java')
-rw-r--r--src/com/android/camera/MenuHelper.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/com/android/camera/MenuHelper.java b/src/com/android/camera/MenuHelper.java
index 29bd279..27b057b 100644
--- a/src/com/android/camera/MenuHelper.java
+++ b/src/com/android/camera/MenuHelper.java
@@ -587,8 +587,7 @@ public class MenuHelper {
}
}
- static void addCaptureMenuItems(Menu menu, final Activity activity) {
-
+ static void addCapturePictureMenuItems(Menu menu, final Activity activity) {
menu.add(0, MENU_CAPTURE_PICTURE, 1, R.string.capture_picture)
.setOnMenuItemClickListener(
new MenuItem.OnMenuItemClickListener() {
@@ -604,7 +603,9 @@ public class MenuHelper {
}
})
.setIcon(android.R.drawable.ic_menu_camera);
+ }
+ static void addCaptureVideoMenuItems(Menu menu, final Activity activity) {
menu.add(0, MENU_CAPTURE_VIDEO, 2, R.string.capture_video)
.setOnMenuItemClickListener(
new MenuItem.OnMenuItemClickListener() {
@@ -621,6 +622,12 @@ public class MenuHelper {
})
.setIcon(R.drawable.ic_menu_camera_video_view);
}
+
+ static void addCaptureMenuItems(Menu menu, final Activity activity) {
+ addCapturePictureMenuItems(menu, activity);
+ addCaptureVideoMenuItems(menu, activity);
+ }
+
static MenuItem addFlipOrientation(Menu menu, final Activity activity, final SharedPreferences prefs) {
// position 41 after rotate
// D