summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Workspace.java
Commit message (Collapse)AuthorAgeFilesLines
* Various icon size changesSunny Goyal2015-05-111-4/+3
| | | | | | | 1) Setting different icon and text size for workspace and all apps 2) Setting padding during BubbleTextView inflation Change-Id: I59da6986b0d98e8e2aa6065743bb799a6bf06a37
* When updating an icon, keeping the drawable padding same as beforeSunny Goyal2015-05-111-2/+2
| | | | | Bug: 17879518 Change-Id: Ifc819c353069bf470fd7ef6f989e4a2ea1289d2d
* Merge "Removing some dead code in paged view" into ub-launcher3-burnabySunny Goyal2015-05-071-12/+0
|\
| * Removing some dead code in paged viewSunny Goyal2015-05-061-12/+0
| | | | | | | | | | | | | | | | > Removing fling to delete pages > Removing delete drop target for pages > Removing syncpages support (was used by paged all apps) Change-Id: I0a35ae30da8c48a27aac341bbee9fb5623665902
* | Accessibility: Page re-ordering in overview modeSunny Goyal2015-05-061-9/+50
|/ | | | Change-Id: I5fc0ad326a63b6768cb1fae55ee6e05a9fc2b659
* Merge "Launcher-side changes to support prediction bar." into ↵Winson Chung2015-05-051-9/+0
|\ | | | | | | ub-launcher3-burnaby
| * Launcher-side changes to support prediction bar.Winson Chung2015-05-041-9/+0
| | | | | | | | Change-Id: Ib9974ad8888ad87137c774f9f531fae9d56b899a
* | Updating fling to delete animSunny Goyal2015-04-301-1/+1
| | | | | | | | Change-Id: I1c63e88b3e605113ea66afca9dcfbc30de1d4c8e
* | Enabling accessibility drag and drop in folderSunny Goyal2015-04-281-5/+16
|/ | | | | | | | | | > Moving DragAndDropAccessibilityDelegate to a separate class > Using getFocusedVirtualView() instead of using DownX and downY > Updating various accessibility strings Bug: 19776741 Change-Id: I85c2551d4d6172c30702e68f41b114bb999655b6
* Adding LongArrayMap as a replacement for HashMap<Long, E>Sunny Goyal2015-04-241-10/+9
| | | | Change-Id: I4710e6db69abcdbd897a8401fc8b980c09e2ffef
* Accessibility fixesSunny Goyal2015-04-241-0/+1
| | | | | | | | > Enabling top bar buttons in accessibility drag-drop > Unifying logic to show delete/uninstall/app-info targets > Announcing cell loction as 1-index instead of 0-index Change-Id: Ibc7801f77e938b2646f0655462cbe9b7f781818b
* Fixing missing updates in package install sessionsSunny Goyal2015-04-221-61/+8
| | | | | | | | | | | | > Ensure icon cache never returns null icon > Enabling install shortuct receiver only after workspace has finished binding > Making all the model changes for package installs on worker thread and only posting the updaes on the UI > Making shortcut exists check on the loaded items and not on the DB > Explicitely using worker thread for PckageInstallListener > Removing backward compatibility support from PackageInstallerCompat Change-Id: I9592771b9670c1c1c84c8208cae8dafa7b393e65
* Refactoring to single path for overview mode.Winson Chung2015-04-211-498/+34
| | | Change-Id: I590a813c6f031342d75c3a6c3e9c9afda1808f2e
* Merge "Accounting for recent changes in padding when detecting backgound ↵Winson Chung2015-04-171-1/+3
|\ | | | | | | taps to close AllApps." into ub-launcher3-burnaby
| * Accounting for recent changes in padding when detecting backgound taps to ↵Winson Chung2015-04-171-1/+3
| | | | | | | | | | | | | | | | close AllApps. - Also ensuring that we keep the search bar visible in all apps only if it is being overridden. Change-Id: Iba980ecec255da80aff8ff57b42ad99d70a2122a
* | Updating drop button targetsSunny Goyal2015-04-161-1/+4
|/ | | | | | | | > Splitting DeleteDropTarget into delete and uninstall > Showing UninstallDropTarget for app shortcuts on workspace > Showing InfoDropTarget only when developer options is enabled Change-Id: I4396571d2199d1581bb9c733aef88ab9b0ebd79d
* Fixing pallpaper parallex in rtl.Sunny Goyal2015-04-151-13/+20
| | | | | | | | The rtl mode, the first screen should correspond to the last opage offset (since page offset are always defined as left-to-right) Change-Id: Ie31139166bd71c423c63968760493ec572af81e9
* Initial changes to support a fixed all-apps layout.Winson Chung2015-04-091-2/+7
| | | | | | | | | | - Dynamically update padding and background depending on fixed bounds and searchbar - Fixes issue with drag layer bg getting clobbered when rotating launcher - Tapping outside the bounds of all apps should close all apps - Fixing typo causing widgets to not show in sw720dp devices Bug: 20127840 Change-Id: I29c3f905bdee940f938ffe054f58434887073092
* WidgetTray revamp workHyunyoung Song2015-04-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | - RecyclerView is rendering - Animation is connected - Drag and drop is now handled - UI tweaking: background, margins, more to come. - Flicker and preview not loading issue: fixed height for the horizontal scroll view. - Shortcuts are added - Widget Preview loading should support shortPress for drop - UI tweaks left: overlay of arrow when there are more items to scroll - icons are added in the section header - Sorting of widget sections and widget horizontal list - Adding all the padding constants to dimen.xml file - RecyclerView should only support one view type For items to be addressed in follow up patches OR CLs, TODO is added to the comment. b/19897708 Change-Id: Ibfc4da1696a23d20bada93db46e126706eb13cdc
* Removing ContentObserver from LauncherModel, and calling reloadSunny Goyal2015-04-011-2/+1
| | | | | | whereever necessary Change-Id: Ia4a8abdfe2be9703f3217a60527d3a1220b33bdc
* Removing UninstallShortcutReceiverSunny Goyal2015-04-011-2/+0
| | | | | | | | | > Removing support due to its flacky design. Removing a shortcut causes a full reload. Also we do not have any concept of owner, so any app can remove any shortcut. Bug: 11372484 Change-Id: I781c922fac7dc77ea82cd0a2af74a5fca22500de
* Removing more code with API 21 dependencies.Winson Chung2015-03-241-1/+3
| | | | Change-Id: I16c914334ce0694b84626269ae4bb5e83082c739
* Merge "Removing all dependencies of launcher code on wallpaper-picker" into ↵Sunny Goyal2015-03-211-2/+3
|\ | | | | | | ub-launcher3-burnaby
| * Removing all dependencies of launcher code on wallpaper-pickerSunny Goyal2015-03-201-2/+3
| | | | | | | | | | | | | | > WallpaperPicker can still depend on launcher code, but not the other way round. Change-Id: I93a07f985c3955c638a68a5fad9c09b184a879b9
* | Rewrite: Widget preview loader logicSunny Goyal2015-03-201-6/+4
|/ | | | | | | | | > Widget previews are saved in data dir instead of cache dir > Expiring widget previews similar to IconCache > Removed support for setting thread priorities Bug: 19865031 Change-Id: Ib6033c2b1ff8ae61bba8762ca994ccd8217d3c75
* Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-201-28/+29
| | | | | | | | | | | Elimates 304 methods based on dex analysis The java compiler generates sythetic accessor methods for all private fields, methods and contructors accessed from inner classes. By marking them package-private and @Thunk instead, sythentic accessor methods are no longer needeed. These annotated elements should be treated as private. Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
* Don't clobber widgets with the same component.Robin Lee2015-03-191-1/+2
| | | | | | | | | By not storing them in a HashMap keyed against ComponentName (which is almost guaranteed to conflict with other widgets when managed profiles are in play). Bug: 19444068 Change-Id: I6ffce78e8aaf265196239670404cbdaff9fa09be
* Lazy loading high res iconsSunny Goyal2015-03-171-1/+2
| | | | | | | > Loading low-res icons for icons which are not visible on the homescreen. Change-Id: I8ac7bf09f6030ed554cb60a4cd402f3f36ffe12b
* Initial changes to break out AllApps into its own view.Winson Chung2015-03-101-27/+40
| | | | | | | | - Moves launcher state-transition code into its own class - Moves all-apps related code into a separate view/set of classes - Implements a basic list view for all apps Change-Id: I68f174aa9e1bf82c4e46ce9549c78a8dc4623f46
* Merge "Ensuring setQsbSearchBar is called whenever the QSB is created" into ↵Sunny Goyal2015-03-101-1/+1
|\ | | | | | | ub-launcher3-burnaby
| * Ensuring setQsbSearchBar is called whenever the QSB is createdSunny Goyal2015-03-041-1/+1
| | | | | | | | | | | | | | | | | | > On launcher3 when the QSB is created for the first time after a widget drop, it is not set in searchDropTarget and as a result the "Remove" and "App Info" drop targets are not visible until Launcher3 restarts and rebinds QSB Change-Id: I599a9a18cc5d46af790b3145dae2eb385b32b20e
* | Merge "Enabling accessible drag and drop" into ub-launcher3-burnabyAdam Cohen2015-03-091-13/+50
|\ \
| * | Enabling accessible drag and dropAdam Cohen2015-03-091-13/+50
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -> Using the context menu, and a new two stage system, this allows users to curate icons and widgets on the workspace -> Move icons / widgets to any empty cell on any existing screen, or create a new screen (appended to the right, as with regular drag and drop) -> Move icons into existing folders -> Create folders by moving an icon onto another icon -> Also added confirmations for these and some existing accessibility actions Limitations: -> Currently, no support for drag and drop in folders -> Considering moving the drag view so it doesn't occlude any content (in particular, when user changes pages) -> In this mode, accessibility framework seems to have problems with the next / prev operations Bug: 18482913 Change-Id: I19b0be9dc8bfa766d430408c8ad9303c716b89b2
* | Fixing icon disappearing on dropping to workspaceSunny Goyal2015-03-051-1/+1
| | | | | | | | | | | | > It was created in ag/645900 Change-Id: I31ca5bf9763292517fa5ee3ccd867897bca45bad
* | Fixing wrong check to determine the drag sourceSunny Goyal2015-03-021-12/+7
|/ | | | | | > target it the drop target, i.e., the InfoDropTarget or DeleteDropTarget Change-Id: If4a9f8eb72ee6afb4d80c7df6f0f2ada4bc35b22
* Updating IconCache to maintain a persistent of iconsSunny Goyal2015-02-261-1/+1
| | | | | | | | | | > IconDB maintains a DB of icons keyed on ComponentName + User > During loader, icons & labels are loaded first from the DB, and if the entry doesn't exist, loaded using packageManager > After the loader completes, IconDB updates any entry which might have changed, while the launcher was dead. Change-Id: I7a6021cb6d1ca1e66fa5a0bdd21e1543e0cf66fc
* Refactoring common methodsSunny Goyal2015-02-261-39/+3
| | | | Change-Id: Id6d3072dd3a6d7f54e9591abbeffd9bd51c7403d
* [key event focus handling] (1)hotseat <-> icon now symmetric, (2)support DEL ↵Hyunyoung Song2015-02-241-0/+3
| | | | | | | | | | | | | | | | | | | keycode TL;DR; (1) Key event navigation from and to the hotseat and icons in the workspace is now symmetric. Since there is one more icon in the hotseat, only left N-1 icon navigation was symmetric. (2) KeyEvent.KEYCODE_DEL and KeyEvent.KEYCODE_FORWARD_DEL can now delete icons from the workspace. The focus move to the previous icon where the focus traveled from. Also contains minor styling and indexing issues. Bug: 15408321 Bug: 19381790 Change-Id: I16cbcb2693e92eebb830997d01c0bf674073dd51
* am fce720f3: Merge "Fixing crash when dragging and dropping a restored ↵Sunny Goyal2015-02-171-3/+2
|\ | | | | | | | | | | | | widget." into ub-launcher3-almonte * commit 'fce720f39adcf8a35b93978c36ab0e8833a74e3e': Fixing crash when dragging and dropping a restored widget.
| * Merge "Fixing crash when dragging and dropping a restored widget." into ↵Sunny Goyal2015-02-171-3/+2
| |\ | | | | | | | | | ub-launcher3-almonte
| | * Fixing crash when dragging and dropping a restored widget.Sunny Goyal2015-02-171-3/+2
| | | | | | | | | | | | | | | | | | | | | > When the widget is in pending state, AppWidgetProviderInfo is not available Bug: 19364311 Change-Id: If3126a375853e6e710c6eba4b8824e18f3f0d391
* | | am 80e6beb4: Ensure that layers are properly removed after animationAdam Cohen2015-02-141-12/+23
|\| | | | | | | | | | | | | | * commit '80e6beb48ca71a321f667e79fe35a7ab2fb4c2bf': Ensure that layers are properly removed after animation
| * | Ensure that layers are properly removed after animationAdam Cohen2015-02-131-12/+23
| |/ | | | | | | | | | | Bug 19243980 Change-Id: Ic1d54f92051f7d937878898cae210ec18ecbaff8
* | Merge "Removing code for the unused 'upgrade path'" into ub-launcher3-masterSunny Goyal2015-02-121-83/+0
|\ \
| * | Removing code for the unused 'upgrade path'Sunny Goyal2015-02-111-83/+0
| | | | | | | | | | | | Change-Id: Ib9eca92284b0eabbe36ffaaf26c62a6ce3cfd3e9
* | | Remove meaningless bug id from from addDumpLog and Log.d methodsHyunyoung Song2015-02-111-25/+0
|/ / | | | | | | | | | | | | b/11683562 b/6557954 Change-Id: Icd0e237ebb09ac868928328f45a3b30cf19a20df
* / Removing support library dependencySunny Goyal2015-01-201-4/+3
|/ | | | | | > Removed FolderAutoScrollHelper as folders are currently not scrollable Change-Id: I261f43a665b742697e3224e1e9852ccc526badcd
* Adding accessibility controlsSunny Goyal2015-01-161-45/+16
| | | | | | | | | | | > Adding 'Remove' option to workspace items > Adding 'Add to workspace' to all apps and widget list items, which adds the item to the first available space, giving preference to the current workspace screen > Adding 'App info' and 'Uninstall' options to appropriate items Bug: 18482913 Change-Id: Ifab7423af2d9ba502b5a2771b37bb5436b3df937
* Supporting custom widgets provided by launcherAdam Cohen2014-12-051-9/+17
| | | | | | | -> This change provides integration for widgets provided by the launcher package which can run arbitrary code. Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
* Prevent multiple workspace state animators from being startedAdam Cohen2014-11-181-0/+14
| | | | | | | | | | | | -> Probably an issue with the way we're wrapping ViewPropertyAnimator which can lead to us acting like it's valid to have multiple instances of a VPA. In reality I think this is very problematic. -> For now, we can just make sure the previous animation is canceled if it hasn't yet completed. Bug 18428886 Change-Id: I097eec08ec68ed098e68866fb5eda72734c51b00