summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-02-28Separating refresh rate tracking to a separate classSunny Goyal
Bug: 221961069 Test: Presubmit Change-Id: I04091ebc9f3d88d2dbbde1bf0d5390c815e026d1
2022-02-24Fix DnD logic for determining current drag screen / panelAdam Cohen
=> we want to use the extremum of finger location and object center for snapping to a new screen (max when snapping to right, min when snapping to left) => when selecting a panel within the current screen, we want to rely strictly on the object center to determine selection; there is plenty of space to be consistent here, and extremum logic could cause thrashing back and forth with no page movement. Test: Manual. See videos in b/221104663. On two-panel and one-panel test dragging a widget between different screens with different starting positions of where the widget goes down. Bug 221104663 Change-Id: I8f0f13f07b753752087a90c4bacb76cfbf7aa5bf
2022-02-24Merge "Fix incorrect accessibility announcement on two panel home" into tm-devAlex Chau
2022-02-24Merge "Use color tokens for all apps entry buttons." into tm-devTreeHugger Robot
2022-02-23Fix incorrect accessibility announcement on two panel homeAndras Kloczl
- Divide total pages by panelCount if two panel is active - Increment target column when moving an item to right panel Test: manual Bug: 200009004 Change-Id: Ia8d2d760dc5e8b413e5b1150c049f7fa3ec26513
2022-02-23Merge "Remove Taskbar and Taskbar EDU flags." into tm-devTreeHugger Robot
2022-02-23Use color tokens for all apps entry buttons.Jon Miranda
Bug: 220356537 Bug: 205803230 Test: manual, dark mode, light mode Change-Id: I0973d5aa9ab1ccbdcc78c1e411cbbf63953f2f94
2022-02-23Merge changes from topic "allapps_bottomsheet_motion" into tm-devAlex Chau
* changes: Tune AllApps bottom sheet VisD and motion Put taskbar all apps in separate overlay window and stash taskbar.
2022-02-23Remove Taskbar and Taskbar EDU flags.Vinit Nayak
Bug: 219035565 Change-Id: I643b5d006b5759723418901ffeb463fa04a82cbc (cherry picked from commit ec4adc1d5abedef149f6c4682464f7f4b1a6b313)
2022-02-23Merge "Create new logic for grid migration" into tm-devThales Lima
2022-02-23Tune AllApps bottom sheet VisD and motionAlex Chau
- Make AllApps bottom sheet solid and appears from bottom - Teleport AllApps bottom sheet as user drag to reduce drag range - Consider teleport interpolation for state transition sdetection - Tuned workspace motions for AllApps bottom sheet (no translate, shrink) - Add portrait vertical translate for tablet portrait including taskbar AllApps - Updated bottom sheet handle and created common variables for other bottom sheets Bug: 208599118 Test: manual on tablet AllApps, taskbar Allapps and handheld AllApps Change-Id: I69dba5f155914cd012cc8ef3be1ef71fb2be5a40
2022-02-23Create new logic for grid migrationThales Lima
Fixes 217564863 Test: manual, changing grids from Wallpaper & Style and checking against spec Change-Id: I94cf77111b37810282527f1a212b6e4126d3eba1
2022-02-23Merge "Fix jump in animation for hotseat while re-arranging icons" into tm-devTreeHugger Robot
2022-02-22Fix icon loading null pointer.Schneider Victor-tulias
Filtering out icon itemInfos with null component names when loading icons in bulk Test: manual Fixes: 220380324 Fixes: 220345439 Change-Id: I0e6f9ae0a363d17497207c92eadcac64ca42693f (cherry picked from commit 5597e4825dc357a122d29672c4682da2e3ce8aca)
2022-02-22Fix jump in animation for hotseat while re-arranging iconsNicolo' Mazzucato
While re-arranging icons the hotseat remains in scale 1.0f, while the workspace reduces it's scale (as defined by SpringLoadedState.java). Previously, the code to aggregate animations was assuming hotseat and workspace always had the same scale. MultiScaleProperty.get() was being used to set the starting value of the animation. Previously, it was returning the last aggregated value. However, this value was correct only for the workspace, but not for the hotseat. Returning the current view scale makes it always correct. Bug: 220271046 Test: Dragged icons from hotseat to workspace, and verified animation didn't jump Change-Id: Ic01776c1d8e3967624626ed7c44d194a06295790
2022-02-21Fix crash when loading string cachekholoud mohamed
Crash was caused by a null context in ModelDelegate Fixes: 218305827 Test: manual Change-Id: I1b046e24427dbdc6752ac100f488c428838ac31f
2022-02-17Merge "Revert "Clear all DragView in onSaveInstanceState""TreeHugger Robot
2022-02-17Merge "Correct order of split action buttons"Tracy Zhou
2022-02-17Merge "Stop using bottom inset in preview"Thales Lima
2022-02-17Stop using bottom inset in previewThales Lima
We are not using the bottom inset (navbar) in Launcher anymore, so we should not use it in preview as well. Fixes 205284107 Test: manual Change-Id: Iefd71b3cbe8e738c4559716af8c85015ba7c3c41
2022-02-17Correct order of split action buttonsTracy Zhou
Fixes: 219988163 Fixes: 217965089 Test: https://screenshot.googleplex.com/8LNMBeEQhMVnDSm Change-Id: I760c0b8085069181d9a1cdc582ac7d58a08f4724
2022-02-16Re-enable bulk icon loadingSchneider Victor-tulias
Bug: 195674813 Test: manual Change-Id: I8cc02cb8648797e55a83bbb184ed2cd5088a1626
2022-02-16Merge "Fix blank workspce icons on Launcher data refresh."Schneider Victor-tulias
2022-02-16Merge "Update TAPL object hierarchy in preparation for Taskbar TAPL tests"TreeHugger Robot
2022-02-16Merge "Do not theme icons when the original view is not themed."TreeHugger Robot
2022-02-16Merge "Remove popup container drag listener on close complete."Brian Isganitis
2022-02-15Update TAPL object hierarchy in preparation for Taskbar TAPL testsSchneider Victor-tulias
See design at: go/taskbar-tapl-tests Test: Ran tests remotely Bug: 215218813 Change-Id: I1c2ceac8954973ea3ae5b2f797fdfb96ba7a6ec4
2022-02-15Reverse order of long-press menu.Brian Isganitis
Test: Manual Bug: 219777079 Change-Id: I161f10a5e7491aaa3926eba714ae2b46a10a2e62
2022-02-15Remove popup container drag listener on close complete.Brian Isganitis
The drag listener is never removed causing a memory leak over time. Bug: 217162588 Test: Verified removal once drag is finished and close complete is called. Change-Id: Iff7bac8724e76e5dec98edaffe2d8853516f6c87
2022-02-15Do not theme icons when the original view is not themed.Jon Miranda
Fixes bug where animations uses themed icons in All Apps, where the icons are not themed. We want the DragView themed since all valid drop locations will have it appear themed. Bug: 215650713 Test: open/close an app from All Apps Change-Id: I9969ce4921831dd12858ed9b0fe64379e9e3b188
2022-02-15Merge "Add predictions row to taskbar all apps."Brian Isganitis
2022-02-15Merge "Add Z scaling during unfold to launcher"TreeHugger Robot
2022-02-15Add Z scaling during unfold to launcherNicolo' Mazzucato
The unfold progresses are mapped to 0.85 - 1 range and set as a scale for launcher. In case of multiple scale animations for workspace and hotseat, they are combined using MultiScaleProperty (e.g. opening an app while unfolding/going to all apps while unfolding). Note that this is a pretty difficult scenario to be in. If that happens, we multiply all values and bound the result between the max and min values. Bug: 217368525 Test: atest MultiScalePropertyTest and manually Change-Id: I6131c39f36deade0b7280c72edda2d72045344e9
2022-02-14Revert "Clear all DragView in onSaveInstanceState"Jon Miranda
This reverts commit 14d6771aae2037d5e9bb330f608c4a7e461786d3 to fix bootline regression. Bug: 210383463 Test: manual Change-Id: I5a0dadee59bfd6b5a164fd2ca3ecdd1885cb4134
2022-02-15Merge "Implemnet methods to drag a icon to given Workspace cell"Benno Lin
2022-02-15Implemnet methods to drag a icon to given Workspace cellBenno Lin
The CL implements public methods to drag an Icon from AllApps to a given cell in the workspace. Bug: 199120092 Test: Launcher3Tests:com.android.launcher3.ui.TaplTestsLauncher3#testDragAppIconToWorkspaceCell Test: https://android-build.googleplex.com/builds/abtd/run/L89300000953052361 Test: https://android-build.googleplex.com/builds/abtd/run/L44500000953013792 Change-Id: Ife16d1f1b55b809763dd40f5afee6711049a4729
2022-02-15Merge "Init FloatingIconView properties before fetching drawable. & Make ↵Jon Miranda
sure properties are reset when recycled."
2022-02-14Init FloatingIconView properties before fetching drawable.Jon Miranda
& Make sure properties are reset when recycled. This fixes the bug that causes BubbleTextView drawable not to get set. Bug: 207389002 Test: locally disable loading AdaptiveIcons, ensure BubbleTextView drawable always gets drawn for closing animation Change-Id: Ifdbf3e733e27918c57a5e9b23e5a11b65f8f338c
2022-02-14Add predictions row to taskbar all apps.Brian Isganitis
- We need to listen to DeviceProfile changes in case the number of columns changes in the grid. I made an interface/mixin separate from ActivityContext to avoid polutting the latter with too many things. I also applied this change to existing taskbar A-Z grid. - Added all apps visited count to onboarding preferences for only showing "All Apps" label in place of divider 20 times. Label is also tracked on taskbar side and should be kept in sync. Test: Manual Fix: 216843395 Bug: 174174514 Change-Id: I97aa91397c334123626caf18251f19e17c7104fb
2022-02-14Merge "Fix restore not migrating to new grid"Alex Chau
2022-02-14Merge "Add debug logs for testPromiseIcon_addedFromEligibleSession"Alex Chau
2022-02-11Fix restore not migrating to new gridAlex Chau
- In reinitializeAfterRestore, use db path instead of grid name to check if migration is necessary, so migration will still happen if grid names are renamed. Also, only remove the target db path instead of all non source db paths, which are not necessary to be removed. - In LauncherBackupAgent, remove old files before restoring to avoid old files from overriding restored files e.g. grid name in shared preferences - Make sure InvariantDeviceProfile is intialize before we set pending to false, so unsupported grids can still be initialized and then be migratead - Renamed 6x5 grid so it no longer collides with 4x4 Fix: 218500583 Test: Restore backup from supported and unsupported grids Change-Id: Ic78e0bc7dc44ad86bd217c736b88708ad488ac0b
2022-02-11Merge "Avoid AllApps bottom sheet from being and add collapse handle"Alex Chau
2022-02-11Merge "Fix DWB placement in grouped task view"Jeremy Sim
2022-02-10Add debug logs for testPromiseIcon_addedFromEligibleSessionJon Miranda
Bug: 202985412 Test: PromiseIconUiTest Change-Id: I160b9229bebe07015575f8184ac2d53bcbf2bad0
2022-02-11Fix DWB placement in grouped task viewJeremy Sim
In grouped task view, DWB banners will now rotate properly when phone is in landscape or seascape orientation. Also fixes a couple of minor existing issues with the bottom task not displaying correctly in the first place. Fixes: 208357326 Fixes: 216218406 Test: Tested locally on Pixel 6, using landscape, seascape, and portrait. Double-checked with task proportions changed, RtL/LtR, and split top/split left/split right initialization. Change-Id: I945f9937d2d4d784c0c74a006c7d0680daf628c2
2022-02-10Merge "Work folder name is only fetched from activity, not ActivityContext"Daniel Chapin
2022-02-10Avoid AllApps bottom sheet from being and add collapse handleAlex Chau
- Instead of using top margin, use top padding instead - Add a separate LinearView for the bottom sheet background - Added a handle to bottom sheet background that handle touches Bug: 208599118 Test: phone, tablet and taskbar Change-Id: Id8d3cb5ee6c58193926e2cf5ea7b0cb2280098be
2022-02-08Work folder name is only fetched from activity, not ActivityContextHyunyoung Song
Bug: 217872881 Test: builds Change-Id: I36bc9c386772c20fce2d10bf1bfaad565046d38f
2022-02-08Merge "Expose action that allows landing on the work tab"Kholoud Mohamed