Commit Graph

34630 Commits

Author SHA1 Message Date
TreeHugger Robot 913e138e3a [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: f48fc6ebdf -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15288027

Change-Id: Ifc17936b5a38e1187e25a641c30135eef3362cc3
2021-07-16 02:03:54 +00:00
TreeHugger Robot f877edb8fc Merge "Fix work profile disable button falsing" into sc-dev am: 753c8b7016
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15286021

Change-Id: I20ea01059f339d8a3dbe1186b7d838fd17faf539
2021-07-16 02:02:54 +00:00
Hongwei Wang 0ca47841f6 [automerger skipped] Merge "Use display cutout info in auto-enter-pip transition" into sc-dev am: a35d7ec90e -s ours
am skip reason: Merged-In Ic191fc73597132a5119522dda477a4319e35d1c8 with SHA-1 70d4e3e2df is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15264643

Change-Id: I2f1a6a8972653b9230a0f6193cae035d04704f48
2021-07-16 01:50:49 +00:00
TreeHugger Robot f054bf5681 Merge "Fixing regression from animation not starting while in overview" into sc-dev 2021-07-16 01:27:02 +00:00
TreeHugger Robot 4aac62110e Merge "Removing support for change listeners from feature flags" into sc-v2-dev 2021-07-16 01:20:32 +00:00
vadimt 7e8cda14a7 Further improving TAPL error messages
Old:
java.lang.AssertionError: http://go/tapl test failure:
Context: getting widget No Config in widgets list => resulting visible state is Widgets;
Details: Widgets container didn't become scrollable

New:
java.lang.AssertionError: http://go/tapl test failure: Widgets container didn't become scrollable;
Context: getting widget No Config in widgets list; now visible state is Widgets

Test: local runs
Bug: 187761685
Change-Id: I77a5b9133f577af27182f823e1130c371863e065
2021-07-15 17:42:09 -07:00
Alex Chau 0eaf4e86a2 Merge "Enable logs on swipe detection in tests" into sc-v2-dev 2021-07-16 00:28:42 +00:00
Winson Chung 558b18eb12 Fixing regression from animation not starting while in overview
Bug: 193830420
Test: Open an app in overview, tap on a notification
Change-Id: Ifd9797dc40d9fffbf9603bca98fcb4a4119e0444
2021-07-15 16:17:51 -07:00
Sunny Goyal 8cbefe2086 Removing support for change listeners from feature flags
FeatureFlags are supposed to work as static values and change
listeners can cause leaks if not handled properly at every place.

Bug: 193825269
Test: Manual
Change-Id: I54f9113bc01025da781a420154829d80ffa6a084
2021-07-15 15:07:04 -07:00
Alex Chau 46b9a41686 Enable logs on swipe detection in tests
- Enable BaseSwipeDetector log in tests
- Add log for scroll finish and motion pause event

Bug: 193440212
Test: TaplTestsQuickstep#testSwitchToOverview
Change-Id: Idab566bc615050f73d898459897b66f8b95951b3
2021-07-15 20:45:51 +01:00
Sunny Goyal 711c596c86 Binding Taskbar directly from Launcher model
This allows taskbar to be loaded even in case of 3P Launchers
and removes dependency on LauncherActivity lifecycle

Bug: 187353581
Bug: 188788621
Test: Manual
Change-Id: I5a0988e0697b41677d4c58f0213aef14ec0c0972
2021-07-15 12:43:11 -07:00
TreeHugger Robot 8c4e93fe49 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-15 18:34:11 +00:00
TreeHugger Robot 170a39b08f Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-15 18:31:31 +00:00
Cyrus Boadway 66f1b57815 Merge "Keep transparent drawable for clipping outline during launch animation" into sc-dev 2021-07-15 18:28:29 +00:00
Pat Manning d642b65137 Merge "Scale task rounded corners proportional to TaskView size." into sc-v2-dev 2021-07-15 17:39:31 +00:00
Bill Yi 1fc7f990b5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie927e0de6422f58f850efe83a6a7ba4e20a7333c
2021-07-15 17:18:25 +00:00
Bill Yi ddedb86ba1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I07a46873b25609c6626be27f535de361b199c313
2021-07-15 17:17:13 +00:00
Steven Ng 2b123833ad Scale RemoteViews from requestPinAppWidget shown in AddItemActivity
Test: manual
Bug: 193144010

Change-Id: Ia2b64c32f92a43a8d71ee82f164543e1e624814a
2021-07-15 17:59:45 +01:00
TreeHugger Robot a1ef7b3c1b Merge "Move focused task to front when attaching RecentsView" into sc-v2-dev 2021-07-15 16:36:30 +00:00
TreeHugger Robot eba399c130 Merge "Reland "Snap to relative position to snappd task when dismissing"" into sc-v2-dev 2021-07-15 16:27:11 +00:00
Steven Ng b3880636c4 Merge "Scale widget previews" into sc-v2-dev 2021-07-15 15:58:08 +00:00
Pat Manning 8a6179bb7d Scale task rounded corners proportional to TaskView size.
Test: manual
Fix: 183936745
Change-Id: I2e2dd806826cba135d5a1e6ab9a5e80b8994d64d
2021-07-15 15:25:24 +00:00
Steven Ng 671ffb88ca Fix class cast issue in AddItemActivity
AddItemActivity is a standalone activity. There is no Launcher activity
instance. Avoid using LauncherAppWidgetHostView in WidgetCell by
replacing it NavigableAppWidgetHostView instead

Test: Check preview layouts are correctly rendered in widgets picker
      and pin widget dialog. Also test drag and drop to verify the
      local color extraction still works when dragging a preview layout
      from widgets picker to home screen.
Fix: 193765783
Change-Id: I3a734a54941257cebcd7b7f6a4c2c9cc764c5c12
2021-07-15 16:06:51 +01:00
Alex Chau 86ac825061 Move focused task to front when attaching RecentsView
- Only move focused task it's the first time attaching RecentsView
- Simpily remove and re-add focused task to move it to front

Bug: 192471181
Test: manual
Change-Id: I95b29c39328911beec7fd3d254f7a22be5e10cc1
2021-07-15 15:24:00 +01:00
Alex Chau 031373daa3 Reland "Snap to relative position to snappd task when dismissing"
This reland commit ba61b98fca accidentally reverted by http://ag/15162411

Bug: 188793333
Test: manual
Change-Id: Iae07a67d528aa80e8f87d37758244d0c46b61cf7
2021-07-15 15:12:34 +01:00
Steven Ng f3d23f67bd Scale widget previews
This CL covers drag requests initiated from Launcher.java but not from
other activities.

Test: Manual
Bug: 193144010
Change-Id: Ieb862d689afe81a5b35aedeb9a277de08c775230
2021-07-15 12:22:37 +01:00
TreeHugger Robot 3df9de7cd0 Merge "Don't create gap between last task and clear all button" into sc-v2-dev 2021-07-15 10:54:47 +00:00
TreeHugger Robot a5e98ad98a Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-15 01:06:14 +00:00
TreeHugger Robot bd198386fc Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-15 01:00:20 +00:00
Vadim Tryshev d6e33dc3ce Merge "Adding more context to swipe-to-home diags" into sc-v2-dev 2021-07-15 00:58:45 +00:00
TreeHugger Robot f48fc6ebdf Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-15 00:54:16 +00:00
TreeHugger Robot 753c8b7016 Merge "Fix work profile disable button falsing" into sc-dev 2021-07-15 00:27:59 +00:00
TreeHugger Robot 6f20ec39dc Merge "Moving launcher state verification higher." into sc-v2-dev 2021-07-15 00:16:27 +00:00
Hongwei Wang a35d7ec90e Merge "Use display cutout info in auto-enter-pip transition" into sc-dev 2021-07-14 23:52:42 +00:00
vadimt b8d13d7a70 Moving launcher state verification higher.
This will result in better messages when accidentally scrolling
closes All Apps.

Test: presubmit
Bug: 187761685
Change-Id: Iadb8847ba66b1d6fe903577f67fcf3e504c2b28c
2021-07-14 22:13:11 +00:00
vadimt fa0be316df Adding more context to swipe-to-home diags
Test: presubmit
Bug: 187761685
Change-Id: I89c6bac2258e63d95971dec9a5c688125b885229
2021-07-14 22:12:31 +00:00
vadimt d0767c86ff Making it clear that the diagnosed state is the final, current one
Test: presubmit
Bug: 187761685
Change-Id: I739a0b9158518a3495b5df7010a0641ed8db8506
2021-07-14 22:11:39 +00:00
Hyunyoung Song 44424572b4 Fix work profile disable button falsing
Bug: 191996677

Test: before this CL: when tapping on immediately above keyboard when
keyboard is translating or when onApplyWindowInset is called, the
hidden (GONE) view handles touch and triggers work profile to be disabled.

After the CL, the button view is not attached to the parent container
when on personal tab. Also, the onApplyWindowInsets method translations
can only be called when work tab is selected.

Change-Id: Ib3e9a5c4b3280052f9ccb62a199ed256ae4e094f
2021-07-14 15:09:26 -07:00
Bill Yi c00f82b9a2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I66e91e3b191845a9055ab7a7229447b5d73cd06e
2021-07-14 21:41:32 +00:00
Bill Yi f2b0e01dd8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1cb8955229751514f4577ba5d37f8ad1d0ab56c5
2021-07-14 21:40:52 +00:00
Bill Yi 83d5e8ca39 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I59d3343c23a12713e00ff0f3b5c96eea4ffb437e
2021-07-14 21:40:23 +00:00
Hongwei Wang 3c4f60900d Merge "Use display cutout info in auto-enter-pip transition" into sc-v2-dev 2021-07-14 21:00:47 +00:00
TreeHugger Robot dc955de0ea Merge "Remove press home command from AddConfigWidgetTest." into sc-dev am: 3ff0336f4a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15188774

Change-Id: I33003e69aefe81ce6ec938376ceceb4c4ccd707b
2021-07-14 20:43:35 +00:00
TreeHugger Robot 3ff0336f4a Merge "Remove press home command from AddConfigWidgetTest." into sc-dev 2021-07-14 20:25:09 +00:00
Cyrus Boadway 1cf5527ae8 Keep transparent drawable for clipping outline during launch animation
During the widget-activity transition, the widget foreground loses its
clipping radius, if the clipping is determined by a drawable. We remove
the drawable through the animation.

For widgets where there is content being clipped by the background's
corener radius, this results in the widget window appearing square
through the entire animation, then snapping in rounded corners on
animation-complete.

To solve this, we leave a transparent clone of the drawable in the
original drawable's place, for the balance of the animation, providing
the outline for clipping.

Manual testing against 20 Google widgets showed no regression in
behaviour in other cases.

Bug: 193665108
Test: manual

Change-Id: I3db31e4634c8dd6b22a513a976386d396445ebc2
2021-07-14 19:21:16 +00:00
TreeHugger Robot 13a423c327 Merge "Expect state transition to overview while holding the swipe from home" into sc-v2-dev 2021-07-14 19:11:55 +00:00
Alex Chau 58a11ac91b Expect state transition to overview while holding the swipe from home
- When swiping from home to overview, overview launches while the finger is still holding the gesture, which is different from swiping from app to overview

Bug: 193440212
Test: TaplTestQuickStep.testOverview and TaplTestQuickStep.testBackground
Change-Id: Ie45e9cb5e599175a56ed368bef107b84db919a34
2021-07-14 17:59:12 +01:00
Alex Chau 6168de06e5 Add logs for pressHome for isLauncherVisible
- Log isLauncherVisble right before the swipe gesture to see if it's a more accurate indicator compared to reading isLauncherVisble earlier

Bug: 193653850
Test: StartLauncherViaGestureTests#testStressPressHome
Change-Id: I4a8303a82f1106c0d1345f561ab469aa4ed59e51
2021-07-14 17:51:08 +01:00
András Klöczl 7609cc4e58 Merge "Fix launcher preview for two panel home" into sc-v2-dev 2021-07-14 15:16:07 +00:00
TreeHugger Robot 6224eaea29 Merge "Notify System UI about taskbar state" into sc-v2-dev 2021-07-14 10:59:26 +00:00