summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [DO NOT MERGE] Adds basic smart-folder logging.thiruram2020-03-232-1/+42
| | | | | | | This would allow collecting trimmed down version of smart-folder logs from QPR devices. Change-Id: Ida332bd969774cabcfd72def5bed0e6409d6c8e1 (cherry picked from commit d684eddd9f47e97931c8960e11e4434c58270150)
* [DO NOT MERGE] Support blacklisting live wallpapers from showing sysui scrimsTony Wickham2020-03-203-5/+73
| | | | | | | | | | Add wallpaper changed broadcast receiver to BaseDragLayer, which checks if the new wallpaper is blacklisted and relays that to remove the scrims. Bug: 150144115 Change-Id: I55b7b98fdd419cd76532492461a872367efed67b (cherry picked from commit d6f917f1824ed97e6f9a225fe1600a8162922d31)
* Merge "Revert "[DO NOT MERGE] Turn off FOLDER_NAME_SUGGEST feature flag"" ↵TreeHugger Robot2020-03-191-1/+1
|\ | | | | | | into qt-qpr1-dev
| * Revert "[DO NOT MERGE] Turn off FOLDER_NAME_SUGGEST feature flag"Hyunyoung Song2020-03-181-1/+1
| | | | | | | | | | | | | | | | This reverts commit a299714c7a080b87fab4bb0f1a9c15231558b8c4. Reason for revert: PM decided to keep it on until R release to not have press write about feature going away. Change-Id: I83c21e3938c38632e267498ba326d0da075e5dc8
* | [DO NOT MERGE] Initiailize APP_SEARCH_IMRPOVEMENT flag outside DEBUG builds.Alex Mang2020-03-181-0/+1
| | | | | | | | | | | | | | | | | | This is addressing a bug where flags are only changed on debug build devices or initially when changes. When nexuslauncher restarts the flag is no longer retrieved. Change-Id: Ieb6f460a271c918ee4e493b34692244f39cb3740 (cherry picked from commit e1664fcf1486d337ea998ded70d092590a0bfbd9)
* | Dismisses system overlays for Home intent.Andy Wickham2020-03-101-0/+1
|/ | | | | | | | | | Test: Used Facebook chatheads (not system bubble). Before the change, Home gesture didn't work. After the change, it does work :) Bug: 146593239 Merged-In: Ib9c85de2f83f99d1ef53fb17fde5d0b3c514849a Change-Id: I19d91aaed19ccaec68478e364ce6b80049d49a98
* [DO NOT MERGE] Turn off FOLDER_NAME_SUGGEST feature flagHyunyoung Song2020-03-081-1/+1
| | | | | | | Bug: 150788630 Change-Id: I740d6b6f3ee1a33a95debfafa29b3caea24a03c3 (cherry picked from commit f538393e42896e5488ca10fccc4cf9409d7295e2)
* [DO NOT MERGE] Prevent hotseat touch hijackSamuel Fufa2020-03-051-11/+21
| | | | | | | | | | | | Currently in AllAppsContinerView#onInterceptTouchEvent we check if a touch event is in bounds of RecyclerViewFastScroller and set mTouchHandler so the scroll bar handles onTouchEvent. However, if a user performs a back gesture from the right side (which overlaps with the scroller) and returns home, touches to the hotseat get intercepted. Bug: 148639821 Test: Manual Change-Id: Ie44f3a16b628b12ad00a7ae6c6bc5703171fbb56
* Increase drag distance threshold when drag starts from deep pressTony Wickham2019-12-241-8/+23
| | | | | | | | | Also don't update distance dragged until drag actually starts (otherwise we add a lot of motion before deep press triggers). Bug: 146146413 Change-Id: I28bd23707a9be53c709d7a4e779e84b9a0be9ce2 (cherry picked from commit a7704c09c70568208f8e08c2d98878e8dd9be1f5)
* Fix shortcut componentname in workspace layout loggingHyunyoung Song2019-12-171-7/+25
| | | | | | | | | Bug: 146172747 Test: $ adb shell dumpsys activity provider com.google.android.apps.nexuslauncher/com.android.launcher3.LauncherProvider --proto --debug SHORTCUT, package=com.android.vending, component=VIEW_MY_DOWNLOADS, grid(3,4), span(1,1), pageIdx=0 user=0 Change-Id: Ic8537d499d66675fbe190f137b50fb693d6c21d5
* perform accessbility focus when the recyclerview doesn't gain focusPinyao Ting2019-12-101-8/+22
| | | | | | | | | | | | | after fragment replacement in SettingsActivity Bug: 145475911 Test: Settings -> App & Notifications -> Default Apps -> Enable Talkback -> Gear Button next to Home app -> About -> Verify Talkback reads the first item in the page Change-Id: I100e646ad2aba0081b48b86ec408ce8e76a80713 Merged-In: I100e646ad2aba0081b48b86ec408ce8e76a80713 (cherry picked from commit 865dc9b3b17084c73cf07868b115cc7710b7dfc1)
* Persist predicted items when dragged to workspaceSamuel Fufa2019-12-041-1/+1
| | | | | | Bug: 143787549 Test: Manual Change-Id: Ieff0ede4072a2a9a87a62b06ad846eedfe97583f
* Fix bug where icon remains invisible after returning home.Jon Miranda2019-11-211-13/+15
| | | | | | | | | | | | - The bug is caused by cancelling of the RectFSpringAnim before the StaggeredWorkspaceAnim has started. - Instead of having logic in StaggeredWorkspaceAnim control the visibility of the icon, we instead maintain all the visibility within the FloatingIconView class itself. Bug: 142120338 Change-Id: I94f3a066d395f9c3b97dc6ee9fc836e9401650a5 Merged-In: I082291ca9b288f57701cc00d61a9b3a84da8b084
* Merge "Fix recents scale sometimes lagging behind window scale" into ↵TreeHugger Robot2019-11-201-1/+5
|\ | | | | | | ub-launcher3-qt-future-dev
| * Fix recents scale sometimes lagging behind window scaleTony Wickham2019-11-201-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were previously offsetting the launcher animation progress based on when we got onGestureStart, which meant it would lag behind if onGestureStart came late. Now that we track the window instead of the launcher shelf, and we don't show the launcher animation right away in fully gestural mode anyway, we should remove this to ensure the launcher part of the animation always lines up with the app window. We also reapply state whenever predictions are enabled, e.g. when launcher starts after being force stopped, and previously this was canceling the existing state animation. We don't want to do that because predictions can be enabled at any point on a cold start, and cancelling the existing state animation means that RecentsView shows up in fullscreen and not attached to the app window for the duration of the gesture. Bug: 144454486 Change-Id: I65a2c71c9acd2f5345941ea2cff7d32c04b7be3f Merged-In: I65a2c71c9acd2f5345941ea2cff7d32c04b7be3f
* | Merge "Improve quick switch from home by tracking both x and y motion" into ↵Tony Wickham2019-11-205-16/+20
|\ \ | | | | | | | | | ub-launcher3-qt-future-dev
| * | Improve quick switch from home by tracking both x and y motionTony Wickham2019-11-145-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add NoButtonQuickSwitchTouchController which uses BothAxesSwipeDetector to track horizontal and vertical motion. - Initially, we only detect swipe left to right to quick switch (like before), but then we allow swipe up to either go to overview (if you hold) or back home (if you don't hold). - xDisplacement transitions non-overview components out (e.g. shelf and workspace), and translates overview in. - yDisplacement translates overview up and scales it down Bug: 126596417 Change-Id: Id679ad84c08246e205c667a78ed5df00d7276258 Merged-In: Id679ad84c08246e205c667a78ed5df00d7276258
* | | Fix folder open/close animation when grid size is small.Jon Miranda2019-11-192-19/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | The issue was that the scaled folder size was smaller than the clip size. To ensure that the folder size is always larger than the clip size, we instead scale the contents of the folder instead of the folder itself. Bug: 143703075 Change-Id: I6eadcc487148fe7e2b7dd9f0ff94a9205048b992
* | | Merge "Fix folder available height calculation" into ub-launcher3-qt-future-devSamuel Fufa2019-11-182-8/+9
|\ \ \
| * | | Fix folder available height calculationSamuel Fufa2019-11-142-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 139456471 Test: Manual Change-Id: Ic86c481e76f8b6629ad74109ef98900f1c00e16c
* | | | Merge "Fixes missing LauncherEvent for TAP action on FOLDER_ICON" into ↵Thiru Ramasamy2019-11-143-30/+56
|\ \ \ \ | | | | | | | | | | | | | | | ub-launcher3-qt-future-dev
| * | | | Fixes missing LauncherEvent for TAP action on FOLDER_ICONThiru Ramasamy2019-11-123-30/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 143969621 Change-Id: I8d08d1c55f90c6aeacd63ced8235de851ec2cad9
* | | | | Merge "Enable a11y scrolling with item drag" into ub-launcher3-qt-future-devSamuel Fufa2019-11-141-2/+6
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Enable a11y scrolling with item dragSamuel Fufa2019-11-131-2/+6
| | |/ / | |/| | | | | | | | | | | | | | | | | | Bug:142300278 Test:Manual Change-Id: Ieb79dac8a793f5adfe715b1cbe5b7ecae95a26b5
* | | | Merge "Tapl: AllApps: ensuring a minimal vertical size of an icon" into ↵TreeHugger Robot2019-11-132-0/+8
|\ \ \ \ | | | | | | | | | | | | | | | ub-launcher3-qt-future-dev
| * | | | Tapl: AllApps: ensuring a minimal vertical size of an iconvadimt2019-11-132-0/+8
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clicking an icon within its padding area is ignored by Launcher. Hence, ensuring that the icon on AllApps is higher that 2 paddings. Bug: 141770616 Change-Id: I19e3ba7cfa25de75a47202845d0838bea46af92c Merged-In: I19e3ba7cfa25de75a47202845d0838bea46af92c
* | | | include predicted_rank in app launch loggingPinyao Ting2019-11-132-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: 1. . build/envsetup.sh && tapas NexusLauncher 2. ccdebug && cclogcat 3. launch from workspace any app that is also in predicted apps 4. verify in terminal it has correct predicted_rank Bug: 143855018 Change-Id: I07a62f07057537a6c09384cf944bbc5aa5888d22 Merged-In: I07a62f07057537a6c09384cf944bbc5aa5888d22
* | | | Preventing dead lock in layout inflationSunny Goyal2019-11-121-7/+11
|/ / / | | | | | | | | | | | | | | | Bug: 143353100 Change-Id: I52d0794aad26c1d1de8cb373f3398f626c15b4af (cherry picked from commit d1a67d0d7238cecf2c55ff095e2ec2b1621ac9a1)
* | | Merge "Address SessionCommitReceiver vulnerability by validating intent." ↵TreeHugger Robot2019-11-081-1/+6
|\ \ \ | | | | | | | | | | | | into ub-launcher3-qt-future-dev
| * | | Address SessionCommitReceiver vulnerability by validating intent.Jon Miranda2019-11-081-1/+6
| |/ / | | | | | | | | | | | | Bug: 144081762 Change-Id: I28699d26abefc716e57c281c15699f15003229b2
* | | Merge "Scaling down hotseat to match prediction row size when going to ↵TreeHugger Robot2019-11-072-20/+7
|\ \ \ | | | | | | | | | | | | overview" into ub-launcher3-qt-future-dev
| * | | Scaling down hotseat to match prediction row size when going to overviewSunny Goyal2019-11-062-20/+7
| | | | | | | | | | | | | | | | | | | | Bug: 141265005 Change-Id: I3b11146881af334508f553e4ca3a36b9291511d9
* | | | Merge "[DO NOT MERGE] Folder name suggest Bug: 142498588" into ↵Hyunyoung Song2019-11-065-12/+99
|\ \ \ \ | |/ / / |/| | | | | | | ub-launcher3-qt-future-dev
| * | | [DO NOT MERGE] Folder name suggestHyunyoung Song2019-11-065-12/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 142498588 Change-Id: I735c842522f08db1fb9a11f731b63f8dba5a298f Signed-off-by: Hyunyoung Song <hyunyoungs@google.com>
* | | | Merge "Add BothAxesSwipeDetector" into ub-launcher3-qt-future-devTony Wickham2019-11-063-0/+101
|\ \ \ \
| * | | | Add BothAxesSwipeDetectorTony Wickham2019-10-253-0/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reports both x and y displacement, and both velocities onDragEnd(). Bug: 126596417 Change-Id: I1c62074b99fe21bc9eedf615e3c9a0a0a400bf81
* | | | | Merge "Fix icons vanishing when dragged within folder" into ↵TreeHugger Robot2019-11-061-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | ub-launcher3-qt-future-dev
| * | | | | Fix icons vanishing when dragged within folderSamuel Fufa2019-11-051-1/+1
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | Bug: 143702700 Test: Manual Change-Id: Idc24086553fd337fc2a553e25daa570073d9ad51
* / | | | Fix dragging icon badge offsetSamuel Fufa2019-11-051-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | Bug: 143702640 Test: Manual Change-Id: I86d97c1f0ea02c86f4bf745a8bdda3887c62f27e
* | | | Add additional shortcutExists check to prevent same app from being auto added.Jon Miranda2019-11-041-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we made the change to treat all auto added workspace items as promise icons, the initial shortcutExists check breaks since its comparing the promise intent to the actual app intent. This additional shortcutExists check can compare the proper intents. Bug: 143803446 Change-Id: Ifa27b15205d6e17f83a4437ac175d51815688c84
* | | | Merge "Fix issue where popup jumps to full size before closing" into ↵Tony Wickham2019-11-011-4/+4
|\ \ \ \ | | | | | | | | | | | | | | | ub-launcher3-qt-future-dev
| * | | | Fix issue where popup jumps to full size before closingTony Wickham2019-11-011-4/+4
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some background on what was happening: - When mEndRect.isEmpty(), we set it to (0, 0 , width, height) - We called mEndRect.setEmpty() in animateClose(), but override mEndRect if the reveal animation set the outline bounds. - But the reveal animation doesn't set the outline bounds until after the arrow animation (40ms) finishes, i.e. the arrow scales up for 40ms then we clip to outline and start revealing the popup - Thus, if you started a drag before the arrow animation finished, we called mEndRect.setEmpty(), which made the close animation start from the full popup size even though it was previously invisible. To fix this, we clip the popup to its (empty) outline while the arrow animates in, and then we can always start from wherever the outline currently is when we close the popup. Test: - Set animation duration to 10x - Long press an icon, and start dragging before the arrow scale animation finishes - The popup never shows, whereas before it jumped to full size Bug: 143639898 Change-Id: I284dd06a23e0e9c3faf066a0083ac13bac88ebcc
* | | | Merge "Maintain dot and text visibility if a new popup is created while ↵Tony Wickham2019-11-011-2/+5
|\ \ \ \ | |/ / / |/| | | | | | | closing" into ub-launcher3-qt-future-dev
| * | | Maintain dot and text visibility if a new popup is created while closingTony Wickham2019-11-011-2/+5
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: - Long press an icon to open the popup - Long press the same icon while the popup is open Previously, the dot would reappear (when the original popup finished closing). Now, the dot stays hidden, as it should since a popup is showing. Bug: 143639898 Change-Id: Ia0bdb626e02f4ad9ba12c27d94fea054b4afe50e
* | | Merge "Fix bug where Files app keeps getting added to the workspace." into ↵TreeHugger Robot2019-10-302-0/+8
|\ \ \ | | | | | | | | | | | | ub-launcher3-qt-future-dev
| * | | Fix bug where Files app keeps getting added to the workspace.Jon Miranda2019-10-302-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Caused by mainline updates where Files app session commit is broadcasted. Launcher workaround is to not auto-add system apps to the workspace. Bug: 139663018 Change-Id: Id61532bd0df2cd5f3bdfc28a3616ba5e5ff3d18a
* | | | Forces OveriewInputConsumer to be used when Assistant is running on top of ↵Andy Wickham2019-10-292-3/+5
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Launcher. Previously it was using OtherActivityInputConsumer, which got things in a pretty weird state (e.g. most recent app would appear in the center as if it was the active app when you started Quick Switching, etc.). By default (toggleable by a feature flag), OverviewWithoutFocusInputConsumer is used because Assistant doesn't seem to respect the CLOSE_SYSTEM_DIALOGS broadcast, at least in half-shelf mode. In this case, the Home intent is sent on swipe up, or you can dismiss it with the back gesture or by tapping above the half shelf. The new feature flag ASSISTANT_GIVES_LAUNCHER_FOCUS routes touches through OverviewInputConsumer. As opposed to OverviewWithoutFocusInputConsumer, this allows Quick Step to work while Assistant is running. Additional logic is added to dismiss the Assistant when appropriate. Note that the dismissal happens atomically, so it's not completely fluid with the other animations. As mentioned above, this is disabled by default because Assistant doesn't currently respect CLOSE_SYSTEM_DIALOGS. Demo with the flag enabled (and Assistant respecting CLOSE_SYSTEM_DIALOGS): https://drive.google.com/open?id=1W5jGpn_TEC-KjrYwQtaBT3pzxG_5tC4W Bug: 139661510 Change-Id: I261653118aff289b329ec2a7ca6e52f100f7835a Merged-In: I261653118aff289b329ec2a7ca6e52f100f7835a
* | | Merge "Fix NPE caused by an install flow where we decode the ↵Jonathan Miranda2019-10-291-15/+20
|\ \ \ | |/ / |/| | | | | LauncherActivityInfo but we don't fill in the data Intent." into ub-launcher3-qt-future-dev
| * | Fix NPE caused by an install flow where we decode the LauncherActivityInfoJon Miranda2019-10-251-15/+20
| | | | | | | | | | | | | | | | | | | | | but we don't fill in the data Intent. Bug: 143190879 Change-Id: I8f774203b99f022b2cf1708de6d8fe2398b332ce
* | | Move overview haptic feedback to VibratorWrapper singletonTony Wickham2019-10-251-0/+84
|/ / | | | | | | | | | | Bug: 141886704 Change-Id: I0178a52088dd4150d7ba054983697ea63a00d9a8 Merged-In: I0178a52088dd4150d7ba054983697ea63a00d9a8