Commit Graph

6193 Commits

Author SHA1 Message Date
Becky Qiu 8f3b7e3249 [Overview Actions] Expose task corner radius to use in TaskOverlay.
Test: local
Bug: 153478940

Change-Id: I03d410edb5a55ce5eda5c703752daf0ef5d04500
2020-05-04 17:31:40 -07:00
Zak Cohen b4ee058955 OverviewActions - make button ripple workspace text color.
Uses a theme to set the control highlight color.

Test: local on dark and light wallpaper
Change-Id: Iddb668fcbd3ab760faabd9c296274315d63e044f
2020-05-04 17:17:52 -07:00
TreeHugger Robot d295b62a94 Merge "Decouple feature flag and predictions" into ub-launcher3-rvc-dev am: f9ec6f670c
Change-Id: Iba90987b3586ab5d88fdca778497ebb509a220c6
2020-05-04 23:29:07 +00:00
TreeHugger Robot f9ec6f670c Merge "Decouple feature flag and predictions" into ub-launcher3-rvc-dev 2020-05-04 23:12:37 +00:00
Samuel Fufa 49d0f64a9d Decouple feature flag and predictions
- Always default to true for ENABLE_HYBRID_HOTSEAT
- Allow launcher to show predictions anytime regardless of notification and on-boarding.
- Remove past beta specific plans
- Migrate if first screen can accommodate hotseat items otherwise show tip

Bug: 142753423
Test: Manual
Change-Id: I142cd95d779964822da07a96e5884a0c82813742
2020-05-04 15:20:39 -07:00
TreeHugger Robot 88287a5969 Merge "Use rotation based on PagedOrientationHandler instead of touch" into ub-launcher3-rvc-dev am: 0dbbd8951d
Change-Id: I1eef8ec81eb812c72cbba1b566dea7acf43fefe0
2020-05-04 20:43:36 +00:00
TreeHugger Robot 0dbbd8951d Merge "Use rotation based on PagedOrientationHandler instead of touch" into ub-launcher3-rvc-dev 2020-05-04 20:21:50 +00:00
Vinit Nayak bb55f9e982 Use rotation based on PagedOrientationHandler instead of touch
Fixes: 154928106
Test: Tested overview w/ and w/o
home rotation enabled.

Change-Id: Ib7e91e51b2181824e5520ad69965ed3379302c27
2020-05-04 11:58:11 -07:00
Vinit Nayak c74eef522b Revert drag factor calculation to pre-vertical overview am: d079aed058
Change-Id: I61bbfab583aff6e8c152e03e7dcbf3f6b58b40d1
2020-05-04 18:06:41 +00:00
Vinit Nayak d079aed058 Revert drag factor calculation to pre-vertical overview
Fixes: 149609070
Test: Swiped up in landscape past
where thumbnail would be. Scaled accordingly.

Change-Id: Ib8e64af2d7a9e4ce517d5f56300d50b659217b71
2020-05-03 22:38:20 -07:00
TreeHugger Robot ad23761c9a Merge "[Overview Actions] Disable touching on the empty area when recent is modal." into ub-launcher3-rvc-dev am: 4544af1996
Change-Id: Ib4565b307642a90130be4decef40048f7d965938
2020-05-01 20:50:29 +00:00
TreeHugger Robot 4544af1996 Merge "[Overview Actions] Disable touching on the empty area when recent is modal." into ub-launcher3-rvc-dev 2020-05-01 20:43:03 +00:00
TreeHugger Robot 3d94facad3 Merge "Sets icon invisible when alpha 0 (Cannot be tapped while TaskView modal)" into ub-launcher3-rvc-dev am: c6d8838c33
Change-Id: Ie9bbb9a9543f205d735b91ddeece86d8b1acc4ab
2020-05-01 20:42:02 +00:00
TreeHugger Robot c6d8838c33 Merge "Sets icon invisible when alpha 0 (Cannot be tapped while TaskView modal)" into ub-launcher3-rvc-dev 2020-05-01 20:27:40 +00:00
Becky Qiu 2d9f8284ca [Overview Actions] Disable touching on the empty area when recent is modal.
Originally touching on the empty space would bring user back to homescreen. We will disable this for select mode.

Test: local
Bug: 154531538
Change-Id: Iee3780755fc2c32682ea0fa039ca5822a95fce2c
2020-05-01 12:51:07 -07:00
Winson Chung a4b11dd984 Skip setting the controller if the animation is already finished
Bug: 154568748
Change-Id: I999c0cc3a4d9661bcf6dcd1e804746a3a0959a83
2020-05-01 16:25:04 +00:00
TreeHugger Robot 976db5a74f Merge changes from topic "widget-logging" into ub-launcher3-rvc-dev am: 7a87f953a8
Change-Id: Iab0fae4977984e9f35c117011c561ef8273d0c5f
2020-05-01 08:15:55 +00:00
TreeHugger Robot 7a87f953a8 Merge changes from topic "widget-logging" into ub-launcher3-rvc-dev
* changes:
  Fixes missing components info when logging Widget item.
  Implement LAUNCHER_ITEM_DRAG_STARTED event.
2020-05-01 07:54:03 +00:00
TreeHugger Robot b61a9bb211 Merge "Fixing RecentsView translation is not reset on app-launch animation" into ub-launcher3-rvc-dev am: e041a062a1
Change-Id: I7a2c5d83da51e1cf1908aa247ad34ee82a3dabeb
2020-05-01 07:31:27 +00:00
TreeHugger Robot e041a062a1 Merge "Fixing RecentsView translation is not reset on app-launch animation" into ub-launcher3-rvc-dev 2020-05-01 07:19:32 +00:00
Winson Chung 2a00f81327 Account for various launcher states when setting back button alpha
- Previously we only check for the flag which is always true in the
  normal launcher state, so if the animation starts, we could end up
  writing the back alpha value without accounting for window focus or
  any other states that launcher is in that affects back button
  visibility

Bug: 155129739
Test: Open -1 article and hit back
Change-Id: I42d27a192b23f394f8565a6893ce092603e31654
2020-04-30 23:03:52 -07:00
Sunny Goyal 9ae484a6ba Fixing RecentsView translation is not reset on app-launch animation
Bug: 155166631
Change-Id: I25b9783fb1ae0d1e3d477a9d9f5aedf60c3c575d
2020-04-30 17:05:23 -07:00
Winson Chung f7587a4306 Merge "Bound the thumbnail insets to the launcher insets" into ub-launcher3-rvc-dev am: bd49cea1ca
Change-Id: I406d97378fe2bd3d7be0a1894b9d099e9105a72f
2020-04-30 23:06:19 +00:00
Winson Chung c32082c8a2 Merge "Fix issue with quickswitch not updating system bar flags" into ub-launcher3-rvc-dev am: 7f534cf2a8
Change-Id: Ia6bde0a37c55062e744b8084890cd3d08ed8048a
2020-04-30 23:06:08 +00:00
Winson Chung bd49cea1ca Merge "Bound the thumbnail insets to the launcher insets" into ub-launcher3-rvc-dev 2020-04-30 22:48:44 +00:00
Winson Chung 7f534cf2a8 Merge "Fix issue with quickswitch not updating system bar flags" into ub-launcher3-rvc-dev 2020-04-30 22:48:43 +00:00
thiruram f81e8b002a Implement LAUNCHER_ITEM_DRAG_STARTED event.
* Fixes null component issue when ItemInfo object copiedFrom.
* Fixes missing container when item is dragged from hybrid hotseat.

Sample Logs:
2020-04-30 14:09:45.499 30472-30472/com.google.android.apps.nexuslauncher D/StatsLogManager: LAUNCHER_ITEM_DRAG_STARTED
    # com.android.launcher3.logger.LauncherAtom$ItemInfo@260f31f8
    application {
      component_name: "com.android.chrome/com.google.android.apps.chrome.Main"
      package_name: "com.android.chrome"
    }
    container_info {
      workspace {
        grid_x: 2
        grid_y: 2
        page_index: 2
      }
    }
    is_work: false

2020-04-30 14:23:15.230 31320-31320/com.google.android.apps.nexuslauncher D/StatsLogManager: LAUNCHER_ITEM_DRAG_STARTED
    # com.android.launcher3.logger.LauncherAtom$ItemInfo@608f101
    application {
      component_name: "com.google.android.gm/.ConversationListActivityGmail"
      package_name: "com.google.android.gm"
    }
    container_info {
      hotseat {
        index: 1
      }
    }
    is_work: false

Bug: 152978018

Change-Id: I3d3ce213fd2fc6eb5ffb239e048ceb7c0fa88b53
2020-04-30 15:03:43 -07:00
Andy Wickham f7c033f5e3 Updates Back and Home tutorial animations.
Also adds Overview and Assistant for future use.

Back: https://drive.google.com/open?id=1-VWcGelSZLHQysCn4Bm1tv7vyXbeMpDX
Home: https://drive.google.com/open?id=1YnpMuZcjs3bdQwQkdCOv5px5Ktpm_aBM

Bug: 148542211
Change-Id: Iaaf24e43f24af5ffca1a040e3c0d71e7d26a2175
2020-04-30 21:44:48 +00:00
Winson Chung a7ac7192c3 Fix issue with quickswitch not updating system bar flags
- Separate the calls to minimize split and to update the flags (we only
  want to minimize in split when swiping up, but we want to update the
  flags when quickswitching as well)

Bug: 155410195
Change-Id: I56308cc0fbaa8a855383012738f129671d72feff
2020-04-30 13:58:22 -07:00
Zak Cohen 65a37ba3a9 Overview - position the modal task in the correct place. am: 7f48b0aa34
Change-Id: Ide59f3cd06d40b9f047f8d9039ca3053a410daf7
2020-04-30 19:52:05 +00:00
Zak Cohen 7f48b0aa34 Overview - position the modal task in the correct place.
video of new behavoir
https://drive.google.com/a/google.com/file/d/1vFTtjjpwamj5H7dhmB1-5JSFS6fv6vMw/view?usp=sharing


Test: local
Bug: 155205932
Change-Id: I7fe79c848af92013587de32a777645cc472ae910
2020-04-30 18:34:46 +00:00
Winson Chung 895f57f610 Bound the thumbnail insets to the launcher insets
- We currently end up using the launcher insets when swiping
  up into overview due to how we scale the target rect to
  the source bounds, but the thumbnail crop is calculated
  only from the task thumbnail insets.  For apps that are
  letterboxed, this results in a jump after the transition
  completes when we crop too far (including the letterbox)
  and end up showing the task background.

  For now, since we are just cropping by the launcher
  insets, we can also take the min of those and the
  thumbnail insets to calculate the thumbnail view crop.

Bug: 151770104
Test: Test swiping up with a normal app, a letterboxed app
      (like authenticator), an app that has no insets (like
Change-Id: I08342b19c54f9078be4613fca9024e2558403bc9
2020-04-30 11:30:05 -07:00
Lucas Dupin 006adace4f Merge "Do not blur if all apps is fully visible" into ub-launcher3-rvc-dev am: 20051e22e5
Change-Id: I0a8a74078276e1e00ecc3bffa9898392c650b742
2020-04-30 17:37:50 +00:00
Lucas Dupin 20051e22e5 Merge "Do not blur if all apps is fully visible" into ub-launcher3-rvc-dev 2020-04-30 17:11:53 +00:00
Sunny Goyal 3402f3da7d Generalizing LauncherState definition so that it can be used in RecentsActivity am: 8f96546e79
Change-Id: I1d51f79d9e3fc8eb1c194e895c03111c608fc8aa
2020-04-30 08:54:09 +00:00
Sunny Goyal 8f96546e79 Generalizing LauncherState definition so that it can be used in RecentsActivity
> Removing 'Launcher' as parameter from state methods called by StateManager
> Converting state properties to methods for easier abstraction
> Moving state handling drom state definition to activity class

Change-Id: I997627df606a7e0bb3bf32688d045a942a47fc94
2020-04-30 01:01:51 -07:00
TreeHugger Robot 734d102574 Merge "Various multi-window fixes" into ub-launcher3-rvc-dev am: 2d60935e1c
Change-Id: If002afd3a08fe25b203a6882e43f2df82385caa9
2020-04-29 23:59:57 +00:00
TreeHugger Robot 2d60935e1c Merge "Various multi-window fixes" into ub-launcher3-rvc-dev 2020-04-29 23:43:57 +00:00
Vinit Nayak 709a52074d Enable edge back gesture on app launch
We don't clear state on EdgeBackGestureHandler
when we go to Recents or Home.
A more robust solution is in the works with
WM team and will probably be built on top of this.
Needs ag/11273364 to work.

Bug: 154580671
Test: Launch app directly in landscape,
should be able to swipe home on first try.

Change-Id: Ia4c685e16645d0237f278a611f6c61f252f3b79c
(cherry picked from commit 3f3cc3e96e)
2020-04-29 23:34:57 +00:00
TreeHugger Robot cb7f93757d Merge "Dump RecentsOrientationState for bug reports" into ub-launcher3-rvc-dev am: 875f381dbb
Change-Id: I8848ee8e4d3af64a6f6315c3f8753aba11f5f205
2020-04-29 20:00:06 +00:00
TreeHugger Robot 875f381dbb Merge "Dump RecentsOrientationState for bug reports" into ub-launcher3-rvc-dev 2020-04-29 19:56:54 +00:00
Vinit Nayak 67e7b8baee Merge "Use appropriate start padding for clear all button" into ub-launcher3-rvc-dev am: 3aed7aeb67
Change-Id: Ie7a3eff5c67d124391b3cf20fdd9761f9d4641f5
2020-04-29 19:53:21 +00:00
Vinit Nayak 3aed7aeb67 Merge "Use appropriate start padding for clear all button" into ub-launcher3-rvc-dev 2020-04-29 19:31:38 +00:00
Vinit Nayak a5877307d1 Dump RecentsOrientationState for bug reports
Bug: 154951045
Test: New output shows up when running
"adb shell dumpsys activity
com.google.android.apps.nexuslauncher.NexusLauncherActivity
[--all]"

Change-Id: I5e9ace7d370eb0e9d278d7d9f7f9156674ca1a50
2020-04-29 12:19:49 -07:00
Sunny Goyal 0addbf0512 Various multi-window fixes
> Fixing scale up calculator for swipe-down
> Offsetting pivot so that the preview is aligned to bottom-right
> Allowing insets to be available in multi-window mode as well
> Offsetting taskViewSimulator appropriately in multi-window mode

Change-Id: I7da4c145efca72ef219a5ffcaf23d726812df270
2020-04-29 11:50:33 -07:00
Lucas Dupin 264cb2ff68 Do not blur if all apps is fully visible
Fixes: 155093795
Fixes: 155203546
Test: manual
Change-Id: I30f4c027e5107a199791e908acbb7ffed94e6a77
2020-04-29 17:49:02 +00:00
Jonathan Miranda 6010f5c1d0 Merge "Fix floating icon view positioning when in multiwindow mode." into ub-launcher3-rvc-dev am: 0d9a9b9336
Change-Id: Ic73efd6442d55c6a674b7dffbdb28d868ccaa22d
2020-04-29 17:47:19 +00:00
Jonathan Miranda 0d9a9b9336 Merge "Fix floating icon view positioning when in multiwindow mode." into ub-launcher3-rvc-dev 2020-04-29 17:26:33 +00:00
Jonathan Miranda 05c9e830b9 Merge "Ensure final values are set when StaggeredWorkspaceAnim is cancelled/ended." into ub-launcher3-rvc-dev am: 7a79edd48a
Change-Id: Ib7c536821ad431be6cf7dcb769d6cf821a06723c
2020-04-29 16:50:08 +00:00
Jonathan Miranda 7a79edd48a Merge "Ensure final values are set when StaggeredWorkspaceAnim is cancelled/ended." into ub-launcher3-rvc-dev 2020-04-29 16:37:50 +00:00