Creating AllAppsBackgroundDrawable using DrawableFactory to allow
easier overriding using derivative projects Change-Id: I7265d888876ea0928391f76ec1bcb7d928c0f27a
This commit is contained in:
1 parent
2c3194e879
commit
260b07fa86
3 files changed
+76
-56
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user