summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Workspace.java
Commit message (Collapse)AuthorAgeFilesLines
* Adding context for app launches.Winson Chung2015-06-021-1/+9
| | | | | Bug: 21492784 Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10
* Merge "Fixing screen jumps when performing DnD in rtl mode" into ↵Sunny Goyal2015-05-291-0/+1
|\ | | | | | | ub-launcher3-burnaby
| * Fixing screen jumps when performing DnD in rtl modeSunny Goyal2015-05-291-0/+1
| | | | | | | | | | Bug: 21445825 Change-Id: Ie43d24ce9c8c08dc2c4b3e24692d497760d8cd2d
* | Merge "Fixing non-scrolling of workspace view after opening/closing AllApps ↵Vadim Tryshev2015-05-281-8/+2
|\ \ | | | | | | | | | vew. The reason for non-scrolling was excluding the pages view from the accessibility hierarchy by marking it as non-important. So, I just removed the code manipulating [non]importance of the PagedView." into ub-launcher3-burnaby
| * | Fixing non-scrolling of workspace view after opening/closing AllApps vew.Vadim Tryshev2015-05-281-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reason for non-scrolling was excluding the pages view from the accessibility hierarchy by marking it as non-important. So, I just removed the code manipulating [non]importance of the PagedView. However, this would make the PagesView accessibility-focusable, which is undesirable. It becomes focusable because it supports long clicks in "normal" mode. Since it doesn't support accessibility long clicks (i.e. Overview mode is fetched NOT via accessibility long-click), I just disabled accessibility long-clickability, which made PageView non-focusable, and it started to behave correctly. Bug: 21281859 Change-Id: I7ab01e5f39cb37c456c961199c27458c9bda1c3d
* | | Fixing page background not displayed when dragging from all appsSunny Goyal2015-05-271-16/+45
| |/ |/| | | | | | | | | | | | | | | > Adding empty page synchronously, instead of waiting for a frame > Changing launcher state from widgets screen in the same frame, similar to all apps > Removing DragEnforcer, and moving that logic in side the workspace, disabled by a flag > Using first page to get page bounds in drag layer, as last page may not have been measured Change-Id: I172ba4e5ce44648ac55402d49994542c6e10f101
* | Removing SmoothPagedView as all its methods are disabledSunny Goyal2015-05-271-6/+1
|/ | | | Change-Id: I83c99bb3d3546693200d64e2233957b4c679e7e6
* Creating landscape and portrait device profiles at app initializationSunny Goyal2015-05-221-13/+11
| | | | Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
* Animating workspace active background changeSunny Goyal2015-05-211-1/+1
| | | | | | > Removing workspace_overscroll_drawable_padding which is always 0 Change-Id: I89900738371458a6eb7cbfee215d98b267d6a0b0
* Refactoring DeviceProfileAdam Cohen2015-05-211-15/+11
| | | | | | | | | | | | | | | | | | | | -> Pulling out the parts of device profile which can (and need to be) initialized and accessed without access to an Activity context, ie. the invariant bits. -> The invariant bits are stored in InvariantDeviceProfile which is initialized statically from LauncherAppState. -> The DeviceProfile contains the Activity context-dependent bits, and we will create one of these for each Activity instance, and this instance is accessed through the Launcher activity. -> It's possible that we can continue to refactor this such that all appropriate dimensions can be computed without an Activity context (by only specifying orientation). This would be an extension of this CL and allow us to know exactly how launcher will look in both orientations from any context. Sets the stage for some improvements around b/19514688 Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892
* Merge "Removing some unused functionalities" into ub-launcher3-burnabySunny Goyal2015-05-201-56/+0
|\
| * Removing some unused functionalitiesSunny Goyal2015-05-191-56/+2
| | | | | | | | | | | | | | | | | | | | > Removing obsolete progrard rules > Removing BackgroundAlphaMultiplier from CellLayout, which is always 1 > Removign otiline animation from workspace. This animation never runs, as it is called during startReordeing which always happens when overview mode (workspaceInModalState() is true) Change-Id: I43219e41ea188771bc818988c1bcbd523f28cba6
* | Moving LauncherAccessibilityDelegate to accessibility packageSunny Goyal2015-05-191-3/+6
|/ | | | Change-Id: I510204a5a12abf2da2757f3e3f8b0e8869a6b04a
* Various lint error fixes.Sunny Goyal2015-05-141-19/+19
| | | | | | | | > Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
* 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