Commit Graph

33301 Commits

Author SHA1 Message Date
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
Hyunyoung Song 691e6e5b35 Merge "Force all apps content to be alpha 0 when plugin is in place Bug: 155114822" into ub-launcher3-rvc-dev am: e180641d38
Change-Id: I27a6f758ab931f6dce81794ccf75dde820306dd6
2020-05-01 18:07:42 +00:00
Hyunyoung Song e180641d38 Merge "Force all apps content to be alpha 0 when plugin is in place Bug: 155114822" into ub-launcher3-rvc-dev 2020-05-01 17:55:56 +00: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
android-build-team Robot e797fc462c Snap for 6450912 from c8cb76afd0 to mainline-release
Change-Id: Ia72b44384f3678d8fdb4c4d9f8c1656c7ec28d76
2020-05-01 07:06:44 +00:00
Jon Miranda b8ccb5b57c Fix app open/close animation in landscape. am: b133a52e86
Change-Id: I3d2872a090f4ca509d1db8487a2f1e85efcab667
2020-05-01 06:58:51 +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
Jon Miranda b133a52e86 Fix app open/close animation in landscape.
When we refactored ClipIconView, we never init mIsVerticalBarLayout.
Instead we pass it in along with the rest of the info from FloatingIconView.

Bug: 155039118
Change-Id: Iff93105c512a8e6478dc49d8ab9100fd129af48c
2020-04-30 22:50:59 -07:00
Tony Wickham 0f29be60be Fix spring overscroll when there's a min scroll am: eb885026ed
Change-Id: If3a296c7d5686fae0fe79055d11c9477e186a01d
2020-05-01 05:37:35 +00:00
Tony Wickham eb885026ed Fix spring overscroll when there's a min scroll
Test: clear app recent apps, open Calculator, open Clock,
quick switch to Calculator and see no jump

Bug: 154815348
Change-Id: I6289d43efe5d850cb2fd807d15115c5ce38c16dd
2020-04-30 23:27:39 -05:00
vadimt 9fd3a943ba Don't do full anomaly check after every gesture
This call is relatively expensive. Perform only cheap launcher crash
test, and do anomaly only if there are problems.

Change-Id: If45567bcedf8d177970739e9de95cbb29add744c
2020-04-30 19:31:21 -07:00
android-build-team Robot 93621b6cc8 Snap for 6449986 from 709a52074d to rvc-release
Change-Id: Ifabffecd62a2d03ed11a282c2e5b09138f1a1838
2020-05-01 01:11:24 +00: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
TreeHugger Robot c0b1427269 Merge "Removing old unused code from PageView" into ub-launcher3-rvc-dev am: 403640c393
Change-Id: Iff2b487f930b9724321da05292f61210ee32fa7f
2020-04-30 22:30:40 +00:00
TreeHugger Robot 403640c393 Merge "Removing old unused code from PageView" into ub-launcher3-rvc-dev 2020-04-30 22:13:51 +00:00
thiruram 0707f2c702 Fixes missing components info when logging Widget item.
Sample Log:

LAUNCHER_ITEM_DRAG_STARTED
    # com.android.launcher3.logger.LauncherAtom$ItemInfo@5c06a6d1
    container_info {
      workspace {
        grid_x: 3
        grid_y: 3
        page_index: 3
      }
    }
    is_work: false
    widget {
      component_name: "com.google.android.deskclock/com.android.alarmclock.DigitalAppWidgetProvider"
      package_name: "com.google.android.deskclock"
      span_x: 2
      span_y: 1
    }

Change-Id: I3d468c77632c694454fcdca24f9d2ccd1c4f918c
2020-04-30 15:03:43 -07: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
TreeHugger Robot eb2549251c Merge "Overriding density when initializing device-profile as the app-context may not point to the correct density in multi-display" into ub-launcher3-rvc-dev am: 28ad91b01b
Change-Id: Ie6ae1c379d3a71f9033b5b99e62e8639d1dad173
2020-04-30 20:38:52 +00:00
TreeHugger Robot afbda10328 Merge "More logging for LogEventChecker appearing to skip events" into ub-launcher3-rvc-dev am: dfd8c4806f
Change-Id: Id6af06aa2dc13d82b5f0e2fbe3e4b85531296cb7
2020-04-30 20:38:42 +00:00
TreeHugger Robot 28ad91b01b Merge "Overriding density when initializing device-profile as the app-context may not point to the correct density in multi-display" into ub-launcher3-rvc-dev 2020-04-30 20:25:47 +00:00
TreeHugger Robot dfd8c4806f Merge "More logging for LogEventChecker appearing to skip events" into ub-launcher3-rvc-dev 2020-04-30 20:24:21 +00: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
Sunny Goyal 1890f67800 Overriding density when initializing device-profile as the app-context may not
point to the correct density in multi-display

Bug: 154665987
Bug: 153293358
Change-Id: I9a95bf314049ce783067f70c735ea29a64388ce5
2020-04-30 12:29:02 -07: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
TreeHugger Robot 8c7e5deac1 Merge "Removing tracking activity start/stop events" into ub-launcher3-rvc-dev am: 0199fa46de
Change-Id: I44b41b253263630cc323f9e5cdb8c717dd6ef02d
2020-04-30 18:23:03 +00:00
TreeHugger Robot 0199fa46de Merge "Removing tracking activity start/stop events" into ub-launcher3-rvc-dev 2020-04-30 18:06:00 +00: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
vadimt 232737c854 More logging for LogEventChecker appearing to skip events
Bug: 155347466
Change-Id: I6598bcf36c1f7ae76e9bb6b2eccefbd00899de2e
2020-04-30 10:19:10 -07: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 b3fe564560 Allow synchronous modification of update listeners list am: d75c1da9c7
Change-Id: Iddd63e2f0f1cd09d3b81be1b9949c004a5dae84c
2020-04-30 08:20:13 +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
Sunny Goyal d75c1da9c7 Allow synchronous modification of update listeners list
We create a copy of the listeners before notifying update, so that
the original list can be changed

Bug: 154879110
Change-Id: If9de06682b189d199a40a9171d7d3cfb23eea062
2020-04-29 23:36:54 -07:00
Vinit Nayak 76f8a7d939 Enable edge back gesture on app launch am: 709a52074d am: 8116388e82 am: c0456bc0e2 am: c8cb76afd0 am: 6edf5adcc6
Change-Id: Ic11f7dad91374cb3c971151a63091426d9662ea9
2020-04-30 05:22:59 +00:00
Vinit Nayak 19f59cc9c1 Enable edge back gesture on app launch am: 709a52074d am: 8029a70ee8 am: aa5b3774c9 am: 2e2e92db8f
Change-Id: If51590215e359fde60ff70af3ca84cdb4143c05e
2020-04-30 05:22:47 +00:00
Vinit Nayak ea4877e973 Enable edge back gesture on app launch am: 709a52074d am: 8116388e82 am: 77bd4a872f am: d98717d585
Change-Id: Ic65f604719fc49b4f66114b68a2e159f3e44b64a
2020-04-30 05:22:03 +00:00
Vinit Nayak 6edf5adcc6 Enable edge back gesture on app launch am: 709a52074d am: 8116388e82 am: c0456bc0e2 am: c8cb76afd0
Change-Id: I7eb9fe10d5c4cc2c54b91470a5472734e50e92d8
2020-04-30 05:21:29 +00:00
Vinit Nayak 2e2e92db8f Enable edge back gesture on app launch am: 709a52074d am: 8029a70ee8 am: aa5b3774c9
Change-Id: I702b155c259cab6aba846c929cefc32e0b307e73
2020-04-30 05:04:46 +00:00