diff options
author | Chih-Chung Chang <chihchung@google.com> | 2009-09-08 13:32:52 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2009-09-08 14:24:14 +0800 |
commit | d189083d760820ad0b0d88e11feb897e4ab5011c (patch) | |
tree | d5147a016dc0ce06620fc3f59310eff33ec79e87 /src/com/android/camera/VideoCamera.java | |
parent | cc5a6356055dd8a8a4017b0af5410b53f25aaef0 (diff) | |
download | LegacyCamera-d189083d760820ad0b0d88e11feb897e4ab5011c.zip LegacyCamera-d189083d760820ad0b0d88e11feb897e4ab5011c.tar.gz LegacyCamera-d189083d760820ad0b0d88e11feb897e4ab5011c.tar.bz2 |
Clean menu creation code.
Change-Id: Ie8ed04e74beef78208946688ee2f33297de0b6d1
Diffstat (limited to 'src/com/android/camera/VideoCamera.java')
-rw-r--r-- | src/com/android/camera/VideoCamera.java | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index f9ec08a..93cad4a 100644 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -96,14 +96,6 @@ public class VideoCamera extends Activity implements View.OnClickListener, private static final boolean SWITCH_CAMERA = true; private static final boolean SWITCH_VIDEO = false; - public static final int MENU_SETTINGS = 6; - public static final int MENU_GALLERY_PHOTOS = 7; - public static final int MENU_GALLERY_VIDEOS = 8; - public static final int MENU_SAVE_GALLERY_PHOTO = 34; - public static final int MENU_SAVE_PLAY_VIDEO = 35; - public static final int MENU_SAVE_SELECT_VIDEO = 36; - public static final int MENU_SAVE_NEW_VIDEO = 37; - private SharedPreferences mPreferences; private VideoPreview mVideoPreview; @@ -1005,8 +997,8 @@ public class VideoCamera extends Activity implements View.OnClickListener, private void addBaseMenuItems(Menu menu) { MenuHelper.addSwitchModeMenuItem(menu, this, false); - MenuItem gallery = - menu.add(0, MENU_GALLERY_VIDEOS, 0, + MenuItem gallery = menu.add(Menu.NONE, Menu.NONE, + MenuHelper.POSITION_GOTO_GALLERY, R.string.camera_gallery_photos_text) .setOnMenuItemClickListener( new OnMenuItemClickListener() { @@ -1018,8 +1010,9 @@ public class VideoCamera extends Activity implements View.OnClickListener, gallery.setIcon(android.R.drawable.ic_menu_gallery); mGalleryItems.add(gallery); - MenuItem item = - menu.add(0, MENU_SETTINGS, 0, R.string.settings) + MenuItem item = menu.add(Menu.NONE, Menu.NONE, + MenuHelper.POSITION_CAMERA_SETTING, + R.string.settings) .setOnMenuItemClickListener( new OnMenuItemClickListener() { public boolean onMenuItemClick(MenuItem item) { |