summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DragController.java
Commit message (Collapse)AuthorAgeFilesLines
* Widget cell improvementSunny Goyal2015-05-191-8/+7
| | | | | | | | | > Using a custom view for preview, instead of extensing image view > Preventing relayout when applying preview > Removing unnecessary method calls Bug: 21133230 Change-Id: Iab12fa1e5c871ee43a9fb0e6b6af897fecfb345f
* Various lint error fixes.Sunny Goyal2015-05-141-3/+4
| | | | | | | | > 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
* Updating fling to delete animSunny Goyal2015-04-301-2/+1
| | | | Change-Id: I1c63e88b3e605113ea66afca9dcfbc30de1d4c8e
* Enabling accessibility drag and drop in folderSunny Goyal2015-04-281-0/+1
| | | | | | | | | | > Moving DragAndDropAccessibilityDelegate to a separate class > Using getFocusedVirtualView() instead of using DownX and downY > Updating various accessibility strings Bug: 19776741 Change-Id: I85c2551d4d6172c30702e68f41b114bb999655b6
* Removing some unused method params from CellLayoutSunny Goyal2015-04-241-2/+1
| | | | | | | > Replacing various distance calculations with Math.hypot > Moving findVacantCell to Utilities Change-Id: I0cb194b603e52b3bb2b29a095bb4da2bb408ab13
* Accessibility fixesSunny Goyal2015-04-241-3/+2
| | | | | | | | > 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
* Updating drop button targetsSunny Goyal2015-04-161-4/+5
| | | | | | | | > 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 drag-n-drop for folders in hotseat.Sunny Goyal2015-04-151-2/+2
| | | | | | | | | | | | | | The current drag-n-drop model assums that when a folder is open it completely covers the folderIcon and its not possible to drop anything on the icon. But its not true when a folder is in the hotseat. > When DnD finishes revert folder to the normal state > Ensure that only one folder is open at a time > Prevent folder icon from moving when the folder is open Bug: 13646281,14680549 Change-Id: I016a4c3f0d9b57c388eaa28f40df9e7b7bbab5fc
* Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-201-7/+9
| | | | | | | | | | | 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
* Scrolling folder during drag-dropSunny Goyal2015-03-131-2/+2
| | | | | | | | > Show a scroll hint (partial scroll) when the icon is over the last icon (some fraction) > Automatically scroll the folder if the user stays in that position for some time > Rearrance the icons on the new page only after the scroll animaiton is complete Change-Id: I7a2dd85ab23802d647801686df069975d197cd39
* Enabling accessible drag and dropAdam Cohen2015-03-091-5/+51
| | | | | | | | | | | | | | | | | | | | | | -> 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
* Updating ItemInfo objects in the worker threadSunny Goyal2014-10-141-6/+11
| | | | | | | | | | | > Launcher was making non-trivial updates to ItemInfo objects on UI thread. These updates were getting skipped when the Activity gets destroyed (possibly due to onConfigurationChange) > Unregistering SessionCallback on application onTerminate, rather than activity onDestroy Bug: 17941096 Change-Id: Iad4a50871fe09470f26139b44a2e9886833032f1
* Fix NPE when dragging shortcut without component while app is uninstalledAdam Cohen2014-06-131-2/+2
| | | | | | issue 14601562 Change-Id: Icf0472d38c1b02de8421f146e26f2e2d79de43dd
* Clean up importsMichael Jurka2013-12-131-1/+0
|
* Use the icon bounds for all calculations.Winson Chung2013-11-141-1/+2
| | | | | | | | - Fixes a drag and drop issue when the dynamic grid scales icons down, due to the drawable bounds not being equal to their bitmap sizes. Change-Id: If7c68b51131de7bac3195a2619e22340f7789432
* Fix NPE we're seeing in feedback (issue 11626428)Adam Cohen2013-11-111-1/+1
| | | | Change-Id: I848ca84b325339004ba8ea50a01f5240eea356f5
* Ensuring disabled packages remove all components on the workspace. (Bug ↵Winson Chung2013-10-161-10/+6
| | | | 11172454)
* Fixing issue where you couldn't drag an item multiple pages (issue 10754544)Adam Cohen2013-09-291-1/+1
| | | | | | | | | | | | -> This was caused by a strange race condition. The page snap time was equal to the delay to recheck whether to snap (in DragController). This meant that scrollRight()/Left() would get called, and the scroller would be finished however, the final computeScrollHelper() hadn't been called, so the mCurrentPage hadn't yet been incremented. -> Fixed the underlying race condition. -> Added suitable gap (150 ms) between the two delays. Change-Id: If700eb9e14d77a174e4395ca6933119bdb0da768
* Fixing weird paging behaviour in spring loaded mode (issue 10758454)Adam Cohen2013-09-291-0/+2
| | | | Change-Id: I9d527d134a042a69a9a523bcf24d1a61f0ab0e55
* Integrating some aosp fixes, ensuring that we update the install queue ↵Winson Chung2013-09-261-6/+2
| | | | | | | | | | | before returning to Launcher. - Fixing stuck page in All Apps (Bug 9347818) - Fixing shortcuts to uninstalled apps from being installed (Bug 10726510) - Consolidating vibration feedback - Ensuring that we trim names during comparison in AllApps list Change-Id: Ieaae4d85851ce771283b4684a8a60306da28cb3b
* Removing old debugging logs. (Bug 107442854)Winson Chung2013-09-191-4/+0
| | | | Change-Id: I56d6838af3cca710eab300d3e71ca1be90866cdd
* Move wallpapers to external activityMichael Jurka2013-09-041-2/+2
| | | | | | | Also renaming Launcher's ApplicationInfo to AppInfo since ApplicationInfo is already a framework class Change-Id: Ib3e91d2ba4ace458d790a26c0ce850870fd3f146
* Logging to disk for more reliable loggingAdam Cohen2013-08-281-0/+4
| | | | | | | -> Re-adding basic distinction btw apps and shortcuts -> Adding functionality to e-mail dump file, but not using Change-Id: I2b635004ab082af79445158ab61f20aac62d2e2f
* Implement ability to uninstall shortcuts from workspaceMichael Jurka2013-07-191-3/+5
| | | Change-Id: I14ca94ea719825c4de19ab85d67537155098d50c
* Porting PagedView from KG to gain simplified scaling model, reorderingAdam Cohen2013-07-081-17/+4
| | | | | | | | | | | | -> We are no longer scaling individual Celllayouts, instead we are scaling the entire Workspace (and the CellLayouts come along for the ride) -> Due to the above change, many assumptions were broken. In particular, our drag and drop / animation archiecture is fairly fragile due to the frequent and complex mapping of points between different bits of the hierarchy. This CL contains a number of fixes which address such breakages. Change-Id: I2e630eab17528729b764b61f587858f6499fd318
* Use autoscroller to handle drag scrollingMindy DelliCarpini2013-07-031-4/+3
| | | | Change-Id: Ie094cbfa91f898133f84ad9ffc349d8cfa07e668
* HACK: Fixing major persistence regression associated with extra screen to ↵Adam Cohen2013-06-141-2/+4
| | | | | | | | the left -> Also adding ability to delete shortcuts. Change-Id: I263baf813eae9089f11288494d575a99f0e859c3
* HACK: Getting rid of all apps button / all apps from AppsCustomizePagedViewAdam Cohen2013-06-061-0/+4
| | | | Change-Id: I74e4a53e9486237ad246ebdfa9e97c6ed9475b58
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-0/+821
Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b