summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/WorkspaceLayoutManager.java
AgeCommit message (Collapse)Author
2021-09-05Add two extra empty pages on two panel launcher homeAndras Kloczl
Add a new screen ID for the second extra empty page and add that new screen as well when the existing extra empty page is added so that users can put items on both sides of Workspace. Test: manual Bug: 196376162 Change-Id: I0b4f2e818407a10d8a7c032788a7bd7a61267779
2021-08-26Two panel home empty page removing logic changeAndras Kloczl
- Don't remove a single page if it's empty, only if both pages are empty. - Add back empty pages after they were removed while the phone was on single panel home. - On two panel home don't add new workspace items onto the second screen Test: manual Bug: 196376162 Change-Id: I4c54ffa3b359a236deb3ab67adb54111e77ec896
2021-08-13Remove widget panelAlex Chau
- Remove all usage of LEFT_PANEL_ID and fixed left panel code - For preview renderer, load screen 0 + screen 1 instead - Added a split display specific default workspace layout, with a placeholder app to pass test before we implement page pairing(b/196376162) - Known issue: If screenId 1 is deleted, right panel will disappear from Wallpaepr & Style because there is no screenId 1. Will be resovled after page pairing(b/196376162) Bug: 175939730 Test: manual and TaplTestsLauncher3#testWorkSpace Change-Id: Icac1c94165c14a49c17897c45355b6cdc4d87e91
2021-06-14Add left widget panel to Launcher home when unfoldedAndras Kloczl
Test: manual Bug: 175939730 Change-Id: I9831e7fa95084db12953ec7cb2eb725e7549e01d
2020-10-23Revert "Revert "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' ...""Winson Chung
This reverts commit 087a9e39b663dade90d8dfd74300e42575649b87. Change-Id: I05b17a6e4aaaef6de3c2fa26aad45a39eb2833f9
2020-10-05Revert "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' ..."Alistair Delva
Revert "Merging from ub-launcher3-master @ build 6877130" Revert "Merging from ub-launcher3-master @ build 6877130" Revert "Merging from ub-launcher3-master @ build 6877130" Revert submission 12738409-merge_ub-launcher3-master_6877130 Reason for revert: Introduced crashes to global presubmit Reverted Changes: I624658ce6:Merge commit '8d14dbe041199d611839140f1c9285fd4174... Iccd2f1e3a:Merging from ub-launcher3-master @ build 6877130 I791d64951:Merging from ub-launcher3-master @ build 6877130 Icdd32ab01:Merging from ub-launcher3-master @ build 6877130 Bug: 169963211 Change-Id: I77a4ae59e823147beae8dd7cb9b54ccdace2c7f4
2020-09-16Adds ability to use LauncherPreviewRenderer in Sandbox.Andy Wickham
This is mostly a proof-of-concept for future use and tweaks as desired by UX. The idea is to better replicate the actual UI. Screenshot: https://drive.google.com/file/d/1EGDgcrSH2QZuSh6P3zWLBl6L8Xd-gtFY/view?usp=sharing Bug: 148542211 Change-Id: Ibed4b8118346ef72599463c9fd6a2f71166993fd
2020-08-27Delays removal of extra screen when dropping an app.Andy Wickham
This prevents a conflict between the scroll animation and layout transition caused by removing the screen. Since the extra screen is at the end of the workspace, this most commonly (only?) causes issues in RTL, as everything shifts to the left to fill the void of the empty screen. See bug for example video of the issue. With this change, the removal of the empty screen happens after Launcher finishes transitioning back to NORMAL state after dropping an icon/widget, rather than in onDragEnd. Note: There is a similar issue when placing a widget in RTL (even if not switching screens), but it's not made worse by this CL. Filed b/166531479. Demo: https://drive.google.com/file/d/1JTP81syjoBFe3_N2SOZHP5r5_RoCUWan/view?usp=sharing Fixes: 163382092 Change-Id: I55ed5af8e1d80dcc0d1b6502c3c5b068dc6f8722
2020-04-09Moving model data structures to a separate fileSunny Goyal
Change-Id: I77ad7a5219e72d2e0d6c1803de2ac3ed6a65a8f7
2019-10-30Predictive hotseat prototypeSamuel Fufa
Supports filling hotseat with predicted apps, pinning of predicted apps and manages replacing predicted apps with user drag. Bug:142753423 Test:Manual Change-Id: I224294f9353a64c46d28c22263a72332a79fddf4
2018-12-04Adding support for launcher preview generationSunny Goyal
Creating a utility class which generates a launcher preview for a provided InvariantDeviceProfile Bug: 118758696 Change-Id: I0aebeb6eed37f72edd1cc305e58eece305aae3ff