summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-05-07Launcher3: Remove 3x3 workspace grid optionalk3pInjection
* makes no sense Change-Id: I8f2d6f835e92ea5de6ea64fb82b3f2b88348c8a2
2022-05-07Launcher3: Add 5x6 workspace grid optiondwardo
Change-Id: Ib8d5dcc70d386376755c0a57b009ced1b2ee0834
2022-05-07Launcher3: Replace 4x4 grid option with a 4x5 oneArne Coucheron
Change-Id: Idc4d2622a4155854ff2762b2392a8d0f8cddb2c6
2022-05-07Launcher3: Double tap on home screen to turn off screenThecrazyskull
Co-authored-by: LibXZR <i@xzr.moe> Change-Id: I554c005d5e523aca0842c78a353686e86af1a7f2
2022-05-06Launcher3: Allow resizing any widgetNebojsa Cvetkovic
[BadDaemon: Adapt for S] Change-Id: Iba122eb45d4ba81e53267ff341addfe281cf02fe Signed-off-by: Joey Rizzoli <joey@lineageos.org>
2022-05-06Launcher3: Fix header protection height calculationDanny Lin
The app list is being clipped below the point where header protection ends, resulting in a slice of empty space. Fix the height calculation so the header protection scrim extends to the clip point. Squashed with the following commit: Author: Danny Lin <danny@kdrag0n.dev> Date: Wed, 29 Dec 2021 21:07:38 -0800 overlay: Launcher3: Re-enable header protection Google disabled this in qpr1, but we can re-enable it now that we've fixed the height/clip calculation. Change-Id: I7a0dc74f048d422d405eb0b0e3982b5d39245ae4
2022-05-06Launcher3: Fix all apps view not dismissingTimi Rautamäki
The logic was reversed. All apps view should dissmiss on back key when the searchbox is focused but empty and clear when not empty. Change-Id: Id11c991dae6c159b986966f278f0c792993b6abd
2022-05-06Launcher3: Improve search bar UI in All AppsDanny Lin
This is similar to, but not exactly the same as, Pixel stock: - Background color with contrast in light mode - Round, flat search bar surface with color matching the header background - Solid rounded background when positioned at the beginning of the list - Subtle placeholder text (medium weight) without icon - Same font size as Settings search bar Change-Id: Ifa9fabe3a8236513fad8030c0bd8ed4d27ebd549
2022-05-06CustomLauncher: Google Feed integrationAnay Wadhera
Change-Id: I4dd635369513e7e8db8f8e4363acb017e0ce8eb1 [kdrag0n: Debranded to com.android.launcher3] [kdrag0n: Ported to Android 12 and converted libGoogleFeed to Soong] Signed-off-by: Danny Lin <danny@kdrag0n.dev>
2022-05-02Launcher3: Enable new app launch animationDanny Lin
Change-Id: Ia676c935700f306b90f7810b32eb1aa630cea355
2022-05-02Launcher3: Don't discard custom grid on config changesLuK1337
Change-Id: Ibfa2eafec50c9fe79d1e9594ddc68fb5266ecb18
2022-05-02Launcher3: Globally disable debug loggingBruno Martins
This also ensures that developer options stay hidden. Change-Id: I34f5ffb5815effc48bf18c2996d3b074b547472f
2022-05-02Launcher3: Disable QSB on first screen by defaultArne Coucheron
Change-Id: I24f1682cbad10610f04f7b8ada238b43addd23da
2021-12-21Merge "Update hotseat alpha in TaskbarLauncherStateController#init()" into ↵Tony Wickham
sc-v2-dev
2021-12-16Update hotseat alpha in TaskbarLauncherStateController#init()Tony Wickham
Technically the consumer should do that already, but the consumer isn't called if the value isn't changed (in this case, it's going from 1 to 1). So explicitly call the consumer once in init(). Test: Open an app, toggle dark theme from quick settings, go home and ensure hotseat isn't visible during the transition Fixes: 211002647 Change-Id: I5a9680282b3982d9b6f982833cd671b224767518
2021-12-16Merge "Show Digital Wellbeing Banners for split tasks" into sc-v2-devTreeHugger Robot
2021-12-15Show Digital Wellbeing Banners for split tasksVinit Nayak
Fixes: 199936292 Change-Id: I38743d58f53a65ef717b1babc21ad1df2dc840a4
2021-12-15Merge "Wait for the Launcher activity to bind to TIS before animating" into ↵Winson Chung
sc-v2-dev
2021-12-15Wait for the Launcher activity to bind to TIS before animatingVinit Nayak
- Mainly a test issue where we destroy the activity and immediately enter overview without preloading launcher. In this case, the task bar does not animate due to the delayed cycled of activity create -> bind service -> service connected -> taskbar ui controller init. As a result, the bar can occlude content from Launcher preventing the test from finding the overview actions. Instead, in cases where we need to animate with launcher, we wait for Launcher to be created (generally already the case) and the service has bound before proceeding. Bug: 189807374 Bug: 204891006 Test: atest NexusLauncherTests:com.android.quickstep.StartLauncherViaGestureTests Change-Id: I2cfccae67ac0e5a591639c6c99df032451dae16d
2021-12-13Merge "Set default value for rank field in launcher logs to ItemInfo.rank." ↵TreeHugger Robot
into sc-v2-dev
2021-12-11Merge "DeviceProfile.overviewRowSpacing should exclude extra top margin on ↵TreeHugger Robot
grid tasks" into sc-v2-dev
2021-12-11Merge "Allow restore across form factors" into sc-v2-devTreeHugger Robot
2021-12-10DeviceProfile.overviewRowSpacing should exclude extra top margin on grid tasksAlex Chau
Bug: 207350366 Bug: 210158657 Test: manual Change-Id: I28116407c4267259a75fd39637104cea9db73fe3
2021-12-10Merge "Display in-memory icon for app close while AdaptiveIcon loads." into ↵Jon Miranda
sc-v2-dev
2021-12-10Allow restore across form factorsAlex Chau
- Removed deviceTypeCompatible check and allow restore across for mfactors - In AOSP default device_profile, mark 3x3, 4x4, and 5x5 as phone only. On tablets they'll reflow to 6x5. Bug: 198575341 Bug: 210129187 Test: Only 3x3, 4x4 and 5x5 are enabled on phone Test: Only 6x5 is enabled on tablet Test: Phone backup of 4x4 get restored and reflow to 6x5 on tablet Change-Id: I36a641d47fcee86ace0fea3d9194d61d12517f13
2021-12-10Display in-memory icon for app close while AdaptiveIcon loads.Jon Miranda
- We already display the BubbleTextView icon during app close since we need the shadows to ensure a clean handoff. - Previously, we waited until the icon and the AdaptiveIcon were both loaded to show the FloatingIconView. - This change immediately shows the BubbleTextView icon so that we can have something displayed in the cases where AdaptiveIcon is slow to load (ie. immediately after killing/restarting launcher). Currently there are cases where we defer some BubbleTextView drawing to ClipIconView. We can refactor in master so that ClipIconView is only used when drawable is an AdaptiveIcon. Bug: 207389002 Test: manual Change-Id: Ie54642fef4258862a155ab0aba6e49cea9c9ead0
2021-12-10Merge "Clear all DragView in onSaveInstanceState" into sc-v2-devJon Miranda
2021-12-09Add split support for 3P launcherVinit Nayak
* Copied logic mostly from Base/RecentsViewStateController * There's one KI crash specific to 3P (b/209694087) * Swipe to home animation is TODO, but then again it also seems incorrect for full-screen app. 3P has many cosmetic issues throughout. Bug: 195607777 Test: Tested w/ Nova launcher with grid and non-grid, able to invoke split screen with same animations as 1P launcher Change-Id: I35a1bc92a51caccac4214289e614000cd47bb503
2021-12-08Clear all DragView in onSaveInstanceStateJon Miranda
Multiple users reports view getting stuck on screen. This CL clears all DragView when user leaves launcher. Root cause still undetermined, but happens enough that it warrants a temp fix. Bug: 162636845 Test: manual Change-Id: I532b5274a1308c53f67c23c5c8ca07f2b7f9802c
2021-12-08Merge "Add launcher grid spec for tablet" into sc-v2-devTreeHugger Robot
2021-12-08Add launcher grid spec for tabletAlex Chau
- Introduced device_category to allow grids to be only enabled for certain device types. By default grids are enabled for all device types, so old OEM device_profiles aren't affected - Removed device_profiles_split.xml as a result and merged with device_profiles.xml - Added deviceType in InvariantDeviceProfile to replace isSplitDisplay and centralize the logic - Only has 6x5 grid with new default layout that works better for tablets Bug: 198575341 Test: manual Change-Id: I03f6727ce837ffeee6321b6d7c53942338d0cf30
2021-12-08Merge changes I6cf84ec7,Iea599651,If3238286 into sc-v2-devTony Wickham
* changes: Improve quick switch from home to taskbar Cleanup some taskbar/hotseat handoff issues Fix taskbar stash misalignment when going from app to overview
2021-12-08Handle split select rotationAlex Chau
- Update floatingTaskView, apply splitsSelectTranslation and splitPrimaryScorllOffest when rotating while in split select - Moved getSplitSelectTranslation to RecentsView - When in portrait, treat STAGE_POSITION_BOTTOM_OR_RIGHT as STAGE_POSITION_TOP_OR_LEFT in split translation calculation - Apply splitsSelectTranslation for portrait grid too Fix: 201721153 Test: manual Change-Id: I768a3b15de4d434674058b274c368798f5852917
2021-12-08Merge "[DO NOT MERGE] Remove one search flag and code from sc-v2." into ↵TreeHugger Robot
sc-v2-dev
2021-12-08Merge "Adding support for logging wallpaper container info." into sc-v2-devBrian Isganitis
2021-12-08Adding support for logging wallpaper container info.Brian Isganitis
Test: https://paste.googleplex.com/5350571797118976 shows logging carousel size and index of wallpaper tapped. If the wallpaper is a live wallpaper, we also log its application info. Bug: 188222480 Change-Id: I6dd7ac20af7afd675d8a886d5b838263680f773e Merged-In: I6dd7ac20af7afd675d8a886d5b838263680f773e
2021-12-07Improve quick switch from home to taskbarTony Wickham
- Add LauncherState#isTaskbarAlignedWithHotseat() which defaults to !isTaskbarStashed(), but is always false for quick switch from home - Replaced FLAG_TRANSITION_STATE_START_STASHED and FLAG_TRANSITION_STATE_COMMITTED_STASHED with FLAG_STATE_TRANSITION_RUNNING and a reference to mLauncherState. STATE_START is equivalent to TRANSITION_RUNNING changing to true, and STATE_COMMITTED is equivalent to TRANSITION_RUNNING changing to false. Then can get details from the state such as whether taskbar is stashed and icon alignment from mLauncherState Test: quick switch from home, both with taskbar stashed in apps and not Fixes: 194728611 Bug: 204657916 Change-Id: I6cf84ec73a4036e14cc7268667c6f62100884c27
2021-12-07Merge "Remove LauncherState.TASKBAR visible element" into sc-v2-devTony Wickham
2021-12-07Use percentage scaling for overview thumbnail sizeAlex Chau
- Limit overview to screen ratio to be at max 70% - Tuned row spacing and page spacing - Added 2 more test activities to testOverviewForTablet to avoid dismissing tasks at end of grid, as more grid tasks are now shown Bug: 207350366 Test: manual Change-Id: Id04871464bdb3ef2d6b046977b0ffd9bd51bc230 Merged-In: Id04871464bdb3ef2d6b046977b0ffd9bd51bc230
2021-12-06Remove LauncherState.TASKBAR visible elementTony Wickham
It's no longer used, so removing to cleanup code and reduce confusion Test: no functional change Fixes: 209512651 Change-Id: Ibd671bde7190df976b5365331731a55a9abdbb35
2021-12-06[DO NOT MERGE] Remove one search flag and code from sc-v2.Becky Qiu
Bug: 209501163 Test: manual Change-Id: Iee1c8276a1f81aa0f54e8a342cfdd3f01d7ab1b7
2021-12-06Merge "Play return to icon animation if user swipes back to All Apps." into ↵Jon Miranda
sc-v2-dev
2021-12-06Merge "Add back screenshot button to Launcher3" into sc-v2-devAlex Chau
2021-12-03Merge "Use getMeasuredWidth instead of getWidth in setSplitIconParams" into ↵TreeHugger Robot
sc-v2-dev
2021-12-03Use getMeasuredWidth instead of getWidth in setSplitIconParamsAlex Chau
Fix: 208647202 Test: Enter overview with app pairs, rotate and rotate back, check the task icon Change-Id: I14914258a2508cf3f399312f4c88574b27a5e9fa
2021-12-03Constraint Snackbar's width to 504dpAlex Chau
Fix: 209005185 Test: manual Change-Id: I512ddb575a9fced4bf2608806aef875fe34304e6
2021-12-03Add back screenshot button to Launcher3Alex Chau
- Also make spacing between buttons always 36dp - Updated screenshot button image for Launcher3 Fix: 208384949 Test: Start overview in Launcher3WithQuickStep, test screenshot button is working Change-Id: Ieb60ce134813202c1d14137fff0a131e1f5f8c96
2021-12-03Merge "Destroy activity/view references to avoid memory leak" into sc-v2-devAlex Chau
2021-12-02Destroy activity/view references to avoid memory leakVinit Nayak
Bug: 204891006 Change-Id: If60ac1716c30ebe68fb6e7457d71f542d3075422
2021-12-02Merge "Add icons for staged split" into sc-v2-devTreeHugger Robot