summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Workspace.java
Commit message (Collapse)AuthorAgeFilesLines
* Bye bye workspace screens tableSunny Goyal2018-12-101-13/+0
| | | | | | | | | | | | | Removing a separate table for workspace screens. List of screens are automatically parsed using the items in the favorites DB. Order of the screen based on the screen id and rearranging screens is no longer supported. In case the screens need to be rearranged, all the items in the favorites db will need to be updated with new screen ids. This makes backing up the DB (in the same database) easier as only one table needs to be duplicates. Change-Id: I8ba947a898f637d780e2f49925e78604263126e8
* Merge "Rename "badges" to "dots" where appropriate" into ub-launcher3-masterTony Wickham2018-12-051-7/+7
|\
| * Rename "badges" to "dots" where appropriateTony Wickham2018-12-041-7/+7
| | | | | | | | | | | | | | | | This will reduce confusion with the other "badging" concept we use for, e.g. work profiles. It is also consistent with the external name "notification dots". Change-Id: I2a2c9d96dc0d6284eb0c48adc78a856271caad4d
* | Adding support for launcher preview generationSunny Goyal2018-12-041-109/+13
|/ | | | | | | | Creating a utility class which generates a launcher preview for a provided InvariantDeviceProfile Bug: 118758696 Change-Id: I0aebeb6eed37f72edd1cc305e58eece305aae3ff
* Making CellLayout inflatable without LauncherActivtiySunny Goyal2018-11-201-1/+8
| | | | | | | | | This will allow creating cellLayout with a different device profile or a different activtiy which can be used when displaying multiple activities in multi-display or generating a preview for changing display properties. Change-Id: I386731d95e33c48bdef270ce9c0d3e9feefb6262
* Fixing wrong layout used to calculate drag-n-drop locationSunny Goyal2018-11-081-3/+3
| | | | | | Bug: 119229781 Bug: 119234125 Change-Id: I24425a7754db3dfef803088761fa67c9586d89d9
* Removing separate hotseat widget, instead using a QSB acroll all UI.Sunny Goyal2018-11-051-74/+42
| | | | | | | The QSB is responsible for updating its UI according to various states. Bug: 109828640 Change-Id: Ic8cbf3d404d5870de0f6b8fe25a332b8d21bae20
* Changing the FolderIcon shape based on AdpativeIconSunny Goyal2018-10-171-3/+3
| | | | | | | | | > Creating an abstract interface to represent a folderIcon shape > Defined few common folder shapes > Picking the folder shape closest to the AdaptiveIcon shape Bug: 111433118 Change-Id: Ib35eddbdd6692767aa9dbe6aae1a379a68cc456a
* Make flags UI available on release build of launcherRyan Lothian2018-10-151-4/+2
| | | | | | | The UI will only be shown on eng/userdebug platform builds. Bug: 117223984 Change-Id: I27843f2d856a4a19f3fe53c4d306606eaa5714a2
* Converting long item IDs to intSunny Goyal2018-10-081-39/+41
| | | | | | | | > Items ids were already being typecasted to int when being bound on the UI > Using a consistent type allow better use of platform data-structures > Adding IntArray and IntSet as a replacement for various Collection classes Change-Id: Id3c650ed2420c2bfca3bd7671d2b705b56112371
* Groundwork for runtime-toggleable feature flagsRyan Lothian2018-10-081-2/+4
| | | | | | | | | | This is the first step in adding a flag toggler UI to launcher. The change migrates a single flag (QSB_ON_FIRST_SCREEN) from a boolean constant to a boolean method. In future, that will allow us to return different values at runtime. Bug: 117223984 Change-Id: I1e62c91dd941b8145166021bc0aa157733e62ea0
* Removing various reflection based animations, to allow for better proguardingSunny Goyal2018-09-211-4/+1
| | | | Change-Id: If9df24ea4170e8a3d336057d1c3dc800934fc1ac
* Add undo snackbar for deleting itemsTony Wickham2018-08-301-2/+3
| | | | | | | | | | | - Add methods to ModelWriter to prepareForUndoDelete, then enqueueDeleteRunnable, followed by commitDelete or abortDelete. - Add Snackbar floating view - Show Undo snackbar when dropping or flinging to delete target; if the undo action is clicked, we abort the delete, otherwise we commit it. Bug: 24238108 Change-Id: I9997235e1f8525cbb8b1fa2338099609e7358426
* Adding overscroll in recents viewSunny Goyal2018-08-101-2/+2
| | | | | Bug: 109828536 Change-Id: I4fe94bd157c2b65f80604751e6f0f7d5d81d058d
* Removing unused touch handling in PagedView so that it is similar to various ↵Sunny Goyal2018-08-081-4/+0
| | | | | | | platform class Bug: 109828536 Change-Id: Ibaba3fb4298f2dc055d125acea5f4c47403bbef0
* Merge "Launching last task when back button is pressed in overview" into ↵Sunny Goyal2018-08-081-6/+0
|\ | | | | | | ub-launcher3-master
| * Launching last task when back button is pressed in overviewSunny Goyal2018-08-021-6/+0
| | | | | | | | | | Bug: 111158326 Change-Id: Ib38f12f177780d15dbee69e4a27c21aaa9a3e087
* | Enabling more checks in TAPL tests.Vadim Tryshev2018-08-031-1/+13
| | | | | | | | | | | | | | | | | | | | Hiding workspace from tests when in AllApps or Overview. Also, we don’t need workspace_page_container. Bug: 110103162 Test: Running TaplTests suite Change-Id: I10875a1ce5d41a015c63034160676578f52d2e98
* | Merge "Retiring some feature flags" into ub-launcher3-masterTreeHugger Robot2018-08-021-16/+2
|\ \ | |/ |/|
| * Retiring some feature flagsSunny Goyal2018-07-101-16/+2
| | | | | | | | Change-Id: I80a00ecaec0785ce2ba6a5f14a54c8a76f555d43
* | Merge "Revert "Create new ShortcutInfo when dropping predicted deep ↵TreeHugger Robot2018-08-021-9/+3
|\ \ | | | | | | | | | shortcuts."" into ub-launcher3-master
| * | Revert "Create new ShortcutInfo when dropping predicted deep shortcuts."Sunny Goyal2018-07-131-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 4685965355577c3d08f3d9f4bd4d9cdff1245679. Reason for revert: Bug: 111435256 Change-Id: I4baf35dcc944915acad9b62d6e36a6858f89af85
* | | Merge changes from topic "am-402aa8b3-7a45-468a-931d-83007cd71180" into ↵TreeHugger Robot2018-07-271-1/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | ub-launcher3-master * changes: [automerger] Increase max distance for folder creation for tablets. am: 5aab8703ee Increase max distance for folder creation for tablets.
| * \ \ [automerger] Increase max distance for folder creation for tablets. am: ↵Android Build Merger (Role)2018-07-171-1/+3
| |\ \ \ | | |_|/ | |/| | | | | | | | | | | | | | 5aab8703ee Change-Id: I37270e7cc65e66c16518b0921e06d26fa30b3bf4
| | * | Increase max distance for folder creation for tablets.Jon Miranda2018-07-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tablets generally have larger cell sizes (relative to phones, and relative to the icon sizes with the cells). By increasing the distance from 55% to 75% of icon size, it is easier for users to meet the folder creation threshold before the icon reorder timeout is triggered. Bug: 110796219 Change-Id: I8264390b8510340f4062e05ec12d0755e93a80d8
| | * | Merge "Fix bug where add to folder fails even when folder creation animation ↵Jonathan Miranda2018-06-141-1/+6
| | |\ \ | | | | | | | | | | | | | | | runs." into ub-launcher3-edmonton-polish
* | | | | Tapl libraryVadim Tryshev2018-07-201-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The public API of the library has finalized; flakiness has been removed; code polished. Bug: 110103162 Test: TaplTests suite Change-Id: Ic156bbfeedb1cb9c4a48ef907f97e396e8e81936
* | | | Moving some abstract classes to interfaces, to better use java-8 featuresSunny Goyal2018-07-091-10/+0
| | | | | | | | | | | | | | | | Change-Id: I862af4931c95cbde052130d8b7d4ac3375db782f
* | | | Merge changes from topic "am-a3d615af-02aa-451c-b89c-c1f59300b566" into ↵Jonathan Miranda2018-06-141-1/+6
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | ub-launcher3-master * changes: [automerger] Fix bug where add to folder fails even when folder creation animation runs. am: 36f6359c21 Fix bug where add to folder fails even when folder creation animation runs.
| * | Fix bug where add to folder fails even when folder creation animation runs.Jon Miranda2018-06-121-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | If the distance > max distance for folder creation, we clear the drag mode if it was previously set. Bug: 78919972 Change-Id: Ibd456c0981ebb20958c54d21ba3996172d2dd554
* | | Prerequisites for TAPLVadim Tryshev2018-06-121-0/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding things that will be used by TAPL. 1. Adding Ctrl+W to open widgets 2. Marking a UI element with shortcuts_and_widgets id. Example of usage: we want to be sure we are in all apps. A somewhat paranoid way to check this is to check that apps_view is on, and workspace and overview_panel are off. However, workspace is always in the hierarchy. We use shortcuts_and_widgets instead. Bug: 110103162 Test: Manual Change-Id: I2a851e16c477f7ee895b459530bc5a1ff19e32f8
* | [automerger] Reporting range of visible tasks am: 528b9e0615Android Build Merger (Role)2018-05-251-22/+3
|\ \ | | | | | | | | | Change-Id: If07b140aa110e7fb8f8ef17637454126248720c1
| * | Reporting range of visible tasksVadim Tryshev2018-05-251-22/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixes task position being incorrectly reported specifically for swipe events due to using stale getCurrentPage(). Bug: 72222505 Test: Manual Change-Id: Ic79b67f8a6ffbfabc397b411b14afc309405197e
* | | Fix bug where icon 'jumps' on long press.Jon Miranda2018-05-251-1/+9
|/ / | | | | | | | | Bug: 76155869 Change-Id: I739b00564b0ebe00b3aff326b3c1d62deea9d1d3
* | Remove custom focus logicSunny Goyal2018-05-231-2/+0
| | | | | | | | | | | | | | | | | | | | Using the system logic for focus handling so that partially visible contents are properly handled, eg in overview only hotseat is visible This does changes the focus logic on workspace when both icons and widgets or different sizes are present, we may consider reviving (parts of) this logic in the future Bug: 80189843 Change-Id: I874e284e0a62b579c24d36db9b74da3de7a7e367
* | Remove code duplicationVadim Tryshev2018-05-181-4/+8
| | | | | | | | | | | | Bug: 72222505 Test: Manual Change-Id: I6ae6ac7474b44c16bd765635e32d2e843bc02cac
* | Fix bug where Workspace page alpha stays 0 in SpringLoaded mode.Jon Miranda2018-05-161-1/+3
| | | | | | | | | | | | | | | | | | | | | | The page alpha gets set to 0 by updatePageAlphaValues sometime between Workspace calling goToState(SPRING_LOADED) and onStartStateTransition. By the time the transition is over, Workspace is no longer in a modal state and so alpha never gets restored via updatePageAlphaValues. Bug: 76449277 Change-Id: I95241395594dd9084763cc3bc51bc55319cadb73
* | Separating the draglayer alpha into multiple dimensions so that different ↵Sunny Goyal2018-05-111-1/+2
| | | | | | | | | | | | | | | | | | | | animaitons can run without affecting the other. Bug: 79323355 Bug: 78880824 Change-Id: I11cb464ebdaad0a7f0a56d4bc4c3dff1d56da16b
* | Removing scrim overdrawSunny Goyal2018-05-101-6/+1
| | | | | | | | | | | | | | | | | | | | > Moving all the scrims to draglayer to avoid creating multiple layers during various animations > Removing sys-ui scrim in various states which alread have a background scrim Bug: 74556464 Bug: 78585335 Change-Id: I8a3fd34ed440f3c7d2e19b3cdb4b72723c535602
* | Merge "Add atomic recents animation while swiping up" into ub-launcher3-edmontonTony Wickham2018-05-091-1/+0
|\ \
| * | Add atomic recents animation while swiping upTony Wickham2018-05-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | State handlers can now specify atomic and non-atomic components of their animations to states, which can be specified when creating a new animation. There is now one atomic animation, when going from NORMAL to OVERVIEW (and in reverse): - RecentsViewStateController's animation (scale/alpha) is all atomic - WorkspaceStateTransitionAnimation has atomic and non-atomic: - Hotseat and workspace alpha is atomic, as is workspace scale - Everything else (scrim, translation, qsb and drag handle alpha) is non-atomic - All apps progress is non-atomic Also simplified dragging through overview; no longer pulls against you, so we use an OvershootInterpolator when flinging instead of our custom interpolator for the spring effect. Bug: 76449024 Bug: 78089840 Change-Id: Iafac84d0c2b99ee9cf9dd5b30e2218286713b449
* | | Increase REORDER_TIMEOUT to make it easier for users to create/add to folder.Jon Miranda2018-05-081-1/+1
|/ / | | | | | | | | | | | | | | This is more common for tall devices where cell height is relatively larger than the icon size. Bug: 78598193 Change-Id: I2835794e4dbe799d0fadefaa723360145d134550
* | Fixing memory leak on rebindSunny Goyal2018-05-071-0/+1
| | | | | | | | | | | | | | Folder listeners were only cleared on activity destroy Bug: 79322746 Change-Id: I5da98b864855303d21b86511de2e2982cd56f305
* | Revert "a11y: disabling accessibility scrolling of the home screen"Vadim Tryshev2018-04-301-7/+0
| | | | | | | | | | | | | | | | | | This reverts commit 52b2b43c5676c43f2ef2cd928281f7d109d2cb76. Reason for revert: Per an email thread, this CL is considered a hack. Change-Id: Id97fc9a398184ba18c2188d858218bc2d9ddc16e (cherry picked from commit 310093d0505570f0239e10bc10aa43686b668d70)
* | Fix bug where workspace taps were not being sent to WallpaperManager.Jon Miranda2018-04-241-13/+3
| | | | | | | | | | Bug: 77218814 Change-Id: Ied464f08dce6f96fd3c56aa790f60a2561edcc84
* | a11y: disabling accessibility scrolling of the home screenVadim Tryshev2018-04-111-0/+7
| | | | | | | | | | | | Bug: 77914605 Test: Manual Change-Id: I5dcfe7479d7239b1f66bd2e805a1aa8978f5ca5b
* | Merge "Avoid duplicate accessibility announcement upon switching to -1st ↵TreeHugger Robot2018-04-051-3/+17
|\ \ | | | | | | | | | page" into ub-launcher3-master
| * | Avoid duplicate accessibility announcement upon switching to -1st pageVadim Tryshev2018-04-051-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since -1st window already has accessible description, no need to announce "Page X of Y" for it. Bug: 74210311 Test: Manual Change-Id: I5cbfd763778b5f7049be732a750df4501b5419e0
* | | Updating the UI of the options popup to make it look similar to icon popupSunny Goyal2018-04-021-0/+5
|/ / | | | | | | | | Bug: 77327164 Change-Id: I3580df8bf8a43cb44123f203ffed9a85fa33aea7
* | Adding a custom view for DragHandleSunny Goyal2018-03-261-11/+0
| | | | | | | | | | | | | | | | | | | | > Separating page indicator and drag handle > Page indicator always draws irrespactive of oriantation > Drag handle is responsible for accessibility interactions > Adding assissibility actions for DragHandle Bug: 72500733 Change-Id: I9030337456964af1bdf77f1c01956452321f9229