diff options
author | Michael Jurka <mikejurka@google.com> | 2010-09-17 15:00:07 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2010-09-24 15:28:20 -0700 |
commit | 0280c3be4d9f8fc6fdf015b7ecd276eb26f76f2d (patch) | |
tree | ffebcc83e7c161dac612463d15882f9b83e6f591 /src/com/android/launcher2/PendingAddItemInfo.java | |
parent | 513b8c94fb1dc3af246fcc8a7f8c0dd593d86cbd (diff) | |
download | android_packages_apps_Trebuchet-0280c3be4d9f8fc6fdf015b7ecd276eb26f76f2d.tar.gz android_packages_apps_Trebuchet-0280c3be4d9f8fc6fdf015b7ecd276eb26f76f2d.tar.bz2 android_packages_apps_Trebuchet-0280c3be4d9f8fc6fdf015b7ecd276eb26f76f2d.zip |
Adding support for drag and drop of folders and shortcuts.
also:
- Long press on empty space on workspace now brings up customization tray
- Fixed: while dragging, items appeared to be dropping on folders two cells to the right
- Fixed: Disabling drops on folders when the workspace is shrunken
- Fixed: account for scaling of dragged items when checking if they overlap
with shrunken workspace screens
- Making folder icons dimmable to match shortcuts and widgets
- When deciding with shrunken workspace screen we're dragging to, we now use the closest screen rather than the one that has been overlapped the most
- Refactored drag/add mechanism, removing array of occupied cells from CellInfo
- Removed dead code/variables
Diffstat (limited to 'src/com/android/launcher2/PendingAddItemInfo.java')
-rw-r--r-- | src/com/android/launcher2/PendingAddItemInfo.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/com/android/launcher2/PendingAddItemInfo.java b/src/com/android/launcher2/PendingAddItemInfo.java new file mode 100644 index 000000000..23e23308d --- /dev/null +++ b/src/com/android/launcher2/PendingAddItemInfo.java @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2010 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.launcher2; + +import android.content.ComponentName; + +/** + * We pass this object with a drag from the customization tray + */ +class PendingAddItemInfo extends ItemInfo { + /** + * The component that will be created. + */ + ComponentName componentName; +}
\ No newline at end of file |