summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/data/EmptyAlbumImage.java
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-09-27 16:36:03 -0700
committerBobby Georgescu <georgescu@google.com>2012-09-28 00:37:11 -0700
commit0fa0d96e5e0a8be32066740288ada89e938c33a8 (patch)
tree570b976ee22fd68450abc8103098d45f3374c46c /src/com/android/gallery3d/data/EmptyAlbumImage.java
parentd9b8148210e667c19835460260b8609ac0ad4299 (diff)
downloadandroid_packages_apps_Snap-0fa0d96e5e0a8be32066740288ada89e938c33a8.tar.gz
android_packages_apps_Snap-0fa0d96e5e0a8be32066740288ada89e938c33a8.tar.bz2
android_packages_apps_Snap-0fa0d96e5e0a8be32066740288ada89e938c33a8.zip
Show a placeholder when the camera filmstrip is empty
Bug: 7213757 Tapping the placeholder takes the user back to the full-screen camera capture mode. Change-Id: I844f789b8e80f34e79f4a9c366c1c244bbf1f2a5
Diffstat (limited to 'src/com/android/gallery3d/data/EmptyAlbumImage.java')
-rw-r--r--src/com/android/gallery3d/data/EmptyAlbumImage.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/data/EmptyAlbumImage.java b/src/com/android/gallery3d/data/EmptyAlbumImage.java
new file mode 100644
index 000000000..dbbc01a33
--- /dev/null
+++ b/src/com/android/gallery3d/data/EmptyAlbumImage.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 EmptyAlbumImage extends ActionImage {
+ @SuppressWarnings("unused")
+ private static final String TAG = "EmptyAlbumImage";
+
+ public EmptyAlbumImage(Path path, GalleryApp application) {
+ super(path, application, R.drawable.ic_menu_revert_holo_dark);
+ }
+
+ @Override
+ public int getSupportedOperations() {
+ return super.getSupportedOperations() | SUPPORT_BACK;
+ }
+}