diff options
author | Bobby Georgescu <georgescu@google.com> | 2012-10-02 13:30:09 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-02 14:25:05 -0700 |
commit | 45f089d69141e3fb0dfaad9bc34d275b61eb2aee (patch) | |
tree | 8f2fafbdabd5391e8966d98c4829adcf470180f9 /src/com/android/gallery3d/data/CameraShortcutImage.java | |
parent | 51915a622bbd32e90f0cd43b69a7851e13825737 (diff) | |
download | android_packages_apps_Gallery2-45f089d69141e3fb0dfaad9bc34d275b61eb2aee.tar.gz android_packages_apps_Gallery2-45f089d69141e3fb0dfaad9bc34d275b61eb2aee.tar.bz2 android_packages_apps_Gallery2-45f089d69141e3fb0dfaad9bc34d275b61eb2aee.zip |
Show Camera placeholder as first filmstrip item in roll
Bug: 7272674
The camera roll filmstrip view now shows a shortcut to
launch the camera when opened from the Gallery app.
Note: the edits to SnailAlbum and SnailSource were made to
allow sharing code between SingleItemAlbum and SnailAlbum
Change-Id: I1bd2f3db99138c4b79a41c9c5baee46704cd18e0
Diffstat (limited to 'src/com/android/gallery3d/data/CameraShortcutImage.java')
-rw-r--r-- | src/com/android/gallery3d/data/CameraShortcutImage.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/data/CameraShortcutImage.java b/src/com/android/gallery3d/data/CameraShortcutImage.java new file mode 100644 index 000000000..865270b4c --- /dev/null +++ b/src/com/android/gallery3d/data/CameraShortcutImage.java @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2012 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.gallery3d.data; + +import com.android.gallery3d.R; +import com.android.gallery3d.app.GalleryApp; + +public class CameraShortcutImage extends ActionImage { + @SuppressWarnings("unused") + private static final String TAG = "CameraShortcutImage"; + + public CameraShortcutImage(Path path, GalleryApp application) { + super(path, application, R.drawable.placeholder_camera); + } + + @Override + public int getSupportedOperations() { + return super.getSupportedOperations() | SUPPORT_CAMERA_SHORTCUT; + } +} |