Commit Graph

6193 Commits

Author SHA1 Message Date
TreeHugger Robot d7ef768f51 Merge "Adding nullcheck while launching task during quickswitch" into ub-launcher3-rvc-qpr-dev am: 6381d38249
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12119527

Change-Id: I48126c4905e20135cdb7091777d9cdf0e2d5f6ba
2020-07-17 01:47:19 +00:00
Sreyas 5e19073c23 Fixing oav text overlap.
Bug: 159240113

Change-Id: I89d8249c21cca86f21cdf57a017745237b4b6cf1
2020-07-17 00:57:56 +00:00
TreeHugger Robot 4b1d1a0f18 Merge "Prevent showing TaskMenuView if icon isn't present" into ub-launcher3-rvc-qpr-dev 2020-07-17 00:04:41 +00:00
Sunny Goyal 852537fd98 Using StatsLog for notifyingAppPredictor
> Adding a listener in StartsLogManager for listening to events.
  This allows events to be directored to the predictor only if
  it is already running, instead of creating it.
> Unifying the event format to be same as hotseat predictor

Bug: 160748731
Change-Id: Ib00e6249ff642c030f00bcad5b748255e704d16a
2020-07-16 14:12:15 -07:00
Tony Wickham 94be66acd6 Fix tracking window being slightly off when swiping from an app
Test: swipe up from an app in landscape, seascape, and portrait,
and verify the window tracks with the finger 1:1 until pullback

Bug: 149934536
Change-Id: Ia469877e7152c8135e0b9153f69c191ba86cbd14
(cherry picked from commit f0a1b2ccd8)
2020-07-16 20:03:36 +00:00
TreeHugger Robot eb2eb38cc2 Merge "Move rotation logic to RotationTouchHelper" into ub-launcher3-rvc-qpr-dev 2020-07-16 05:14:25 +00:00
Vinit Nayak 0affd89031 Move rotation logic to RotationTouchHelper
No functional changes.

Fixes: 159764370
Change-Id: Ie7739a62242377bda69c86bd46e24d2f847f17e0
2020-07-15 22:03:14 -07:00
Sreyas Rangaraju e1037c63dd Merge "Disabling overview actions when thumbnail is not loaded." into ub-launcher3-rvc-qpr-dev 2020-07-15 23:31:51 +00:00
Sreyas 0d2eea3316 Reset disabled flags when action buttons lose visibility.
Bug: 159993889
Change-Id: Id2a38eee5de067d5e8f1df425644dfdcb3334cdb
2020-07-15 16:16:43 -07:00
Becky Qiu 928a421b99 Merging from ub-launcher3-master @ build 6682763
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6682763.html

Change-Id: Ibff46b3ef7ff89accb459db323f31179adb4ef21
2020-07-15 20:50:57 +00:00
Sunny Goyal 6999bae7af Fixing swiping up on home interrupting animation am: d481c5c58c am: 8d7fdfdd47
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12152002

Change-Id: I894bc770e300539f1e158d18513c55cebf7ec9c3
2020-07-15 19:56:58 +00:00
Sunny Goyal d3f1736119 Fixing swiping up on home interrupting animation am: d481c5c58c am: 8d7fdfdd47
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12152002

Change-Id: Ie64f58e81a7b08756da10345983f268cb8edc676
2020-07-15 19:56:47 +00:00
Sunny Goyal c3771e64d9 Fixing swiping up on home interrupting animation am: d481c5c58c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12152002

Change-Id: I62a4e0cb58d2159730295129724b05cbfdc11af4
2020-07-15 19:56:21 +00:00
Sreyas 68330a93fa Disabling overview actions when thumbnail is not loaded.
Bug: 160331177
Change-Id: I05eaec7d6f2e3f2ba71d8148a4e97dcf5a1522c6
2020-07-15 19:46:09 +00:00
Sunny Goyal d481c5c58c Fixing swiping up on home interrupting animation
Bug: 161180005
Change-Id: Ida59b87b2fb5905d98b0090630a6ce32fc9c36c8
Merged-In: Ida59b87b2fb5905d98b0090630a6ce32fc9c36c8
(cherry picked from commit 93188d61da)
2020-07-15 07:11:30 +00:00
Sunny Goyal cf6bae49a3 Fixing swiping up on home interrupting animation
Bug: 161180005
Change-Id: Ida59b87b2fb5905d98b0090630a6ce32fc9c36c8
(cherry picked from commit 93188d61da)
2020-07-14 22:00:04 +00:00
Sunny Goyal 75bf867d96 Fixing swiping up on home interrupting animation am: 369501d8aa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12152001

Change-Id: I7dc92aae75718c5460a2a2981880b536339f39d9
2020-07-14 19:57:54 +00:00
Sunny Goyal 369501d8aa Fixing swiping up on home interrupting animation
Bug: 161180005
Change-Id: Ida59b87b2fb5905d98b0090630a6ce32fc9c36c8
(cherry picked from commit 93188d61da)
2020-07-14 19:07:51 +00:00
Sunny Goyal ec78aef4fc Merge "Fixing swiping up on home interrupting animation" into ub-launcher3-rvc-qpr-dev 2020-07-14 16:01:43 +00:00
Tracy Zhou 0ca024d259 Merge "Place launcher above the target app in live tile mode" into ub-launcher3-master 2020-07-14 05:35:28 +00:00
vadimt 4bc691b988 Removing workarounds for a fixed bug
Bug: 148422894
Change-Id: Ic6faa173ac5f28c8656daf68ac8304563264afdd
2020-07-13 20:02:13 -07:00
Sunny Goyal 93188d61da Fixing swiping up on home interrupting animation
Bug: 161180005
Change-Id: Ida59b87b2fb5905d98b0090630a6ce32fc9c36c8
2020-07-13 17:44:56 -07:00
Sunny Goyal e96edf4ee1 Preventing disambiguation screen when swiping up am: f130c29882 am: 88e9c5dcb1 am: 5a9dce4136 am: c659064f22
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12141303

Change-Id: I5f5ce0b1142c4fe850e13a74327dea22d8a544c2
2020-07-13 22:21:57 +00:00
TreeHugger Robot add69c70c4 Merge "Fix velocity in StaggeredWorkspaceAnimation." into ub-launcher3-rvc-qpr-dev 2020-07-13 22:20:33 +00:00
TreeHugger Robot 054280dba4 Merge "Using original taskInfo to create the taskKey instead of fake data" into ub-launcher3-rvc-qpr-dev 2020-07-13 22:06:13 +00:00
Jon Miranda aee792403d Fix velocity in StaggeredWorkspaceAnimation.
* Velocity should match the direction of the spring values.
  (Swipe direction is upwards, but icons move downwards on screen).
* Remove additional conversion to pxPerS since getDimension already does that.

Bug: 160003774
Change-Id: I12912edb2354c4a30c538da6ca3789c46d82b94d
(cherry picked from commit 54003963d8)
2020-07-13 21:48:19 +00:00
Sunny Goyal 55a9b544c9 Using original taskInfo to create the taskKey instead of fake data
Change-Id: Ie4e35b35484e0f6cb939febe6357b37381d81682
(cherry picked from commit fabfb3ae90)
2020-07-13 21:47:16 +00:00
Pinyao Ting 9d51e49cec Fixes the issue Launcher state propagation is slower than onDeferredResume.
There's currently a bug prevents Launcher release drag lock for two step
widgets. Supposedly, onDeferredResume should release the drag lock; However,
in 3-button navigation mode, the transition from Overview -> Normal is
triggered in Launcher#onNewIntent, which happens after onDeferredResume.

This issue is not reproducible with gesture navigation because its
transition from Overview -> Normal is handled in NavBarToHomeTouchController

Test: manual verified with following steps
1. Enable 3-button navigation
2. Long press in WorkSpace -> Widgets
3. Drag Settings Widget to WorkSpace
4. When the config activity is shown, press "recents" button to see Overview
5. press "home" button to go back to workspace
6. repeat 2 and 3, verify the widget can be dragged
Bug: 149659788

Change-Id: I396ffa8a7db44bf3872a10de4208340a99a7efe8
(cherry picked from commit 3bf889a02f)
2020-07-13 21:46:05 +00:00
Sunny Goyal 0ed6042555 Preventing disambiguation screen when swiping up am: f130c29882
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12141303

Change-Id: I77b4149f114788606d1b249adf2e1bfe82de65af
2020-07-13 21:37:58 +00:00
Sunny Goyal 88e9c5dcb1 Preventing disambiguation screen when swiping up am: f130c29882
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12141303

Change-Id: I4af9c71769ac0ce7d30311b88a1564e31a5eac8d
2020-07-13 21:37:47 +00:00
Vinit Nayak de43fb6323 Notify TaskViews of updated orientation state
There was a race condition between when recent
tasks get loaded for overview and when the
RecentsOrientationState gets updated based on
which orientation was touched. Now notify
tasks view every time orientation state
updates.

Fixes: 160912655
Test: Kill launcher while landscape app
is open then swipe up to recents.
App in correct location.

Change-Id: If2b239f748c000257bd91b14a23d68ba026e3a48
2020-07-13 14:31:24 -07:00
TreeHugger Robot 5491b2e2e0 Merge "Fix shelf tracking distance for landscape app over portrait launcher" into ub-launcher3-rvc-qpr-dev 2020-07-13 20:44:30 +00:00
Tony Wickham 032db3289a Merge "Wait until activity present before calling onEndTargetCalculated()" into ub-launcher3-rvc-qpr-dev 2020-07-13 20:37:15 +00:00
Tony Wickham 452db0db0c Fix shelf tracking distance for landscape app over portrait launcher
Bug: 149934536
Change-Id: I14fa62fa9f51356613f4a3827446b00af774dbf5
2020-07-13 13:21:02 -07:00
Sunny Goyal 386b75305c Merge "Preventing disambiguation screen when swiping up" into ub-launcher3-rvc-dev am: c031040a2f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12141301

Change-Id: Icca8524c3d2ea19c50015825138dd916d5e13161
2020-07-13 19:44:03 +00:00
Tony Wickham ddbaadb562 Wait until activity present before calling onEndTargetCalculated()
At least one code path relies on the activity to be created: if the
end target is RECENTS, we add a state manager listener to see when
user goes to NORMAL state.

Fixes: 160903658
Change-Id: I3449dec773399f7e9cf2e7ef8b79734b1baa59b4
2020-07-13 12:32:37 -07:00
Sunny Goyal f130c29882 Preventing disambiguation screen when swiping up
Bug: 161052537
Change-Id: Ibeeba0841963dc5eb1b5a09847cafc26eb6e4adc
2020-07-13 19:03:56 +00:00
Sunny Goyal a639d46c8b Preventing disambiguation screen when swiping up
Bug: 161052537
Change-Id: Ibeeba0841963dc5eb1b5a09847cafc26eb6e4adc
2020-07-13 10:42:47 -07:00
Tracy Zhou 611fe76180 Place launcher above the target app in live tile mode
Fixes: 160361464
Test: manual
Change-Id: Id9d012fb71c6817ce82aa048d3dd56ea4d456f01
2020-07-11 20:54:31 -07:00
Bill Yi 2ef5f38ae5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7f36648a52740ae4e104c8bd2f0321f541ee218f
2020-07-10 14:54:57 -07:00
Bill Yi 7a1ffa3222 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I89c54ef089cf1b7db377ec3d7759e1e727b7bd70
2020-07-10 14:54:19 -07:00
Sunny Goyal e9bf882158 Import translations. DO NOT MERGE
Force snapping translations from unbundled branch
Bug: 159176821

Test: N/A
Change-Id: I2406edf7eef6aa683f99b2b5f897d16b8968a28d
2020-07-10 12:07:45 -07:00
Vinit Nayak 2060a4b9e1 Prevent showing TaskMenuView if icon isn't present
Also fixed another bug where the wrong layout
orientation was being applied when overview rotated
when launcher was in fixed portrait orientation.

Fixes: 160182914
Test: Tested w/ PIP, split screen,
w/o split screen w/ and w/o home rotation

Change-Id: Iccffb637ae5c22d07745f2108facd4de716dc8d3
2020-07-10 11:55:06 -07:00
TreeHugger Robot c3c15cc946 Merge "Updating some comments and variables" into ub-launcher3-rvc-qpr-dev 2020-07-10 00:50:36 +00:00
Tracy Zhou fdfe61071b Merge "Update the position of the live tile overlay upon swipe up" into ub-launcher3-master 2020-07-10 00:23:46 +00:00
Tracy Zhou c9c9a66f1b Update the position of the live tile overlay upon swipe up
Everything is behind the flag so it's completely safe

Bug: 160911104
Test: manual
Change-Id: I9dc0ff7ea178ba5562d13370412b0dfa2599d2c0
2020-07-09 15:40:16 -07:00
TreeHugger Robot 95c620c38d Merge "Let AllAppsEduView consume touch until animation is done and view is removed." into ub-launcher3-rvc-qpr-dev 2020-07-09 21:45:18 +00:00
TreeHugger Robot 24ddf21cea Merge "Updating gesture tutorial home animation" into ub-launcher3-rvc-qpr-dev 2020-07-09 21:44:51 +00:00
Jon Miranda 58d74c3dd9 Let AllAppsEduView consume touch until animation is done and view is removed.
Bug: 160760115
Bug: 160761752
Change-Id: Ie7ab0b4c6e61dc862cac10fa961b8d1c11c6cb10
2020-07-09 14:11:53 -07:00
Sunny Goyal 29266c9ebe Updating some comments and variables
Change-Id: Ib3223c66e9ce187cebc6ce26a46b228f95787778
2020-07-09 12:31:49 -07:00