summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2013-11-19 15:45:07 +0000
committerMathew Inwood <mathewi@google.com>2013-11-20 11:45:53 +0000
commit72fbec17e09a1120971621587d5005f683baafd1 (patch)
treebf1e0b22ecc482eb7592f51d4883e9b593e5a488 /src/com/android/launcher3/Utilities.java
parent97436804cd50e292757674c06d5d205d281cb716 (diff)
downloadandroid_packages_apps_Trebuchet-72fbec17e09a1120971621587d5005f683baafd1.tar.gz
android_packages_apps_Trebuchet-72fbec17e09a1120971621587d5005f683baafd1.tar.bz2
android_packages_apps_Trebuchet-72fbec17e09a1120971621587d5005f683baafd1.zip
Add support for initiating a drag from an overlay.
This allows an overlay to create apps and shortcuts on the home screen. Change-Id: I63ee4ef02db3f4bc89726c394fd55ad26f50452c
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r--src/com/android/launcher3/Utilities.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java
index 21c546d04..9ffd044b4 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -43,7 +43,7 @@ import java.util.ArrayList;
/**
* Various utilities shared amongst the Launcher's classes.
*/
-final class Utilities {
+public final class Utilities {
private static final String TAG = "Launcher.Utilities";
private static int sIconWidth = -1;
@@ -111,7 +111,7 @@ final class Utilities {
/**
* Returns a bitmap suitable for the all apps view.
*/
- static Bitmap createIconBitmap(Drawable icon, Context context) {
+ public static Bitmap createIconBitmap(Drawable icon, Context context) {
synchronized (sCanvas) { // we share the statics :-(
if (sIconWidth == -1) {
initStatics(context);