diff options
Diffstat (limited to 'src/com/android/launcher3/Workspace.java')
-rw-r--r-- | src/com/android/launcher3/Workspace.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index 71407b9fc..e98f12f6e 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -31,10 +31,7 @@ import android.appwidget.AppWidgetHostView; import android.appwidget.AppWidgetProviderInfo; import android.content.ComponentName; import android.content.Context; -import android.content.Intent; import android.content.SharedPreferences; -import android.content.pm.PackageManager; -import android.content.pm.ResolveInfo; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Bitmap; @@ -81,7 +78,6 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; -import java.util.Map; import java.util.Set; import java.util.concurrent.atomic.AtomicInteger; @@ -398,6 +394,13 @@ public class Workspace extends SmoothPagedView } } + /** + * @return A {@link Set} of {@link Long}s representing ids of the workspace screens + */ + public Set<Long> getWorkspaceScreenIds() { + return mWorkspaceScreens.keySet(); + } + // estimate the size of a widget with spans hSpan, vSpan. return MAX_VALUE for each // dimension if unsuccessful public int[] estimateItemSize(int hSpan, int vSpan, @@ -4460,6 +4463,7 @@ public class Workspace extends SmoothPagedView } if (cellLayout != null) { cellLayout.onDropChild(mDragInfo.cell); + cellLayout.setUseTempCoords(false); } } if ((d.cancelled || (beingCalledAfterUninstall && !mUninstallSuccessful)) |