summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/graphics
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-01-08 13:13:47 -0800
committerSunny Goyal <sunnygoyal@google.com>2017-01-08 13:14:51 -0800
commit260b07fa86865481ab3e1c6d4fec3ef52ba0a621 (patch)
treeb56080225da638903b20de92dabb2129e0017195 /src/com/android/launcher3/graphics
parent2c3194e87977c06a72e54e63745f790d619e77ed (diff)
downloadandroid_packages_apps_Trebuchet-260b07fa86865481ab3e1c6d4fec3ef52ba0a621.tar.gz
android_packages_apps_Trebuchet-260b07fa86865481ab3e1c6d4fec3ef52ba0a621.tar.bz2
android_packages_apps_Trebuchet-260b07fa86865481ab3e1c6d4fec3ef52ba0a621.zip
Creating AllAppsBackgroundDrawable using DrawableFactory to allow
easier overriding using derivative projects Change-Id: I7265d888876ea0928391f76ec1bcb7d928c0f27a
Diffstat (limited to 'src/com/android/launcher3/graphics')
-rw-r--r--src/com/android/launcher3/graphics/DrawableFactory.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/launcher3/graphics/DrawableFactory.java b/src/com/android/launcher3/graphics/DrawableFactory.java
index f6a4b844f..693df7ad8 100644
--- a/src/com/android/launcher3/graphics/DrawableFactory.java
+++ b/src/com/android/launcher3/graphics/DrawableFactory.java
@@ -23,6 +23,7 @@ import com.android.launcher3.FastBitmapDrawable;
import com.android.launcher3.ItemInfo;
import com.android.launcher3.R;
import com.android.launcher3.Utilities;
+import com.android.launcher3.allapps.AllAppsBackgroundDrawable;
/**
* Factory for creating new drawables.
@@ -50,4 +51,8 @@ public class DrawableFactory {
d.setFilterBitmap(true);
return d;
}
+
+ public AllAppsBackgroundDrawable getAllAppsBackground(Context context) {
+ return new AllAppsBackgroundDrawable(context);
+ }
}