summaryrefslogtreecommitdiffstats
path: root/src/com/android/photos/drawables
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2013-03-06 16:36:45 -0800
committerJohn Reck <jreck@google.com>2013-03-06 16:38:37 -0800
commitdc0bb6232a45a646799db8a79e9d678c494fc956 (patch)
treebc018452463c82a5b3b9054ee5478ae4954018be /src/com/android/photos/drawables
parent1bf3f3238727cc73a156e3eb61a2d2343ac3bdc0 (diff)
downloadandroid_packages_apps_Snap-dc0bb6232a45a646799db8a79e9d678c494fc956.tar.gz
android_packages_apps_Snap-dc0bb6232a45a646799db8a79e9d678c494fc956.tar.bz2
android_packages_apps_Snap-dc0bb6232a45a646799db8a79e9d678c494fc956.zip
Data provider shim
Bolt the new UI framework on top of the old data model temporarily to unblock UI work Change-Id: I2f61f70647faca1f6a95b1f02f719ec4277fa5fb
Diffstat (limited to 'src/com/android/photos/drawables')
-rw-r--r--src/com/android/photos/drawables/DrawableFactory.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/com/android/photos/drawables/DrawableFactory.java b/src/com/android/photos/drawables/DrawableFactory.java
new file mode 100644
index 000000000..ad046c820
--- /dev/null
+++ b/src/com/android/photos/drawables/DrawableFactory.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2013 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.photos.drawables;
+
+import android.graphics.drawable.Drawable;
+
+
+public interface DrawableFactory<T> {
+ Drawable drawableForItem(T item, Drawable recycle);
+}