Commit Graph

32375 Commits

Author SHA1 Message Date
Tony Wickham f8d731a808 Cleanup state properly when interacting during gesture nav transition
When the transition is canceled (e.g. when touching the nav bar during the transition), do the following:
- Abort the RecentsView scroll including the edge effects to ensure we get onSettledOnEndTarget() immediately.
- Jump to the current gesture end target state instead of the default rest state.

Test: Swipe up and to the left and hold to go to overview from an app, then swipe up to home during the transition; ensure that the touch down goes to overview rather than home, and subsequently that the swipe is respected and goes to home
Fixes: 189142339
Change-Id: Ie1d7dd05f45ab48968df7fdfd69fa1e1dda36d06
2021-05-26 15:28:38 -07:00
Samuel Fufa 53ec9a4e06 Merge "[Search] Resolve afterimage when closing allapps" into sc-dev 2021-05-26 00:42:58 +00:00
TreeHugger Robot e81ac4f170 Merge "Set mEnableDrawingLiveTile = false in RecentsView#reset()" into sc-dev 2021-05-26 00:29:11 +00:00
TreeHugger Robot 55060ca7ea Merge "Crossfading splashscreen if icon is themed" into sc-dev 2021-05-26 00:26:22 +00:00
TreeHugger Robot d98a784d0e Merge "Overview - Remove the space withheld for proactive chips" into sc-dev 2021-05-26 00:11:18 +00:00
Vinit Nayak b74b9d2966 Merge "TaskMenu in overview UI polish" into sc-dev 2021-05-25 23:56:00 +00:00
TreeHugger Robot 3f7a9c198d Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-25 23:44:56 +00:00
TreeHugger Robot 3b20449045 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-25 23:41:55 +00:00
TreeHugger Robot 03334795e7 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-25 23:41:26 +00:00
Tony Wickham 1fe96abb86 Set mEnableDrawingLiveTile = false in RecentsView#reset()
This should help ensure we only finish the recents controller when we're actually still in live tile mode.

Test: theoretical (no repro steps)
Fixes: 187354606 (hopefully)
Change-Id: If0632f03535e4aafaea751724f080f272a6af58f
2021-05-25 15:59:31 -07:00
Bill Yi c84ee09dbd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifca3cdf2713b121701f57a02c88353397a2a9222
2021-05-25 22:38:33 +00:00
Bill Yi 1276d7b8d7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I49ec409fe6df98ada02d378db1f652f5a7e0b278
2021-05-25 22:37:31 +00:00
Bill Yi e70d6c492b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I46496d705598b872aedbf575425d371d291c157d
2021-05-25 22:36:33 +00:00
Samuel Fufa 41f15a107f [Search] Resolve afterimage when closing allapps
Preview: https://drive.google.com/file/d/1AM6WAY4kImCgHueNvH6eXUtnHgK3U6vo/view?usp=sharing&resourcekey=0-3mzBobzFuzQXCNZRUlToYA
Test: Manual
Bug: 184711608
Bug: 188556051
Change-Id: Ib43c71083460c236347dd1f340b1ad95d7d4aa15
2021-05-25 17:34:18 -05:00
zakcohen dad8a80d19 Overview - Remove the space withheld for proactive chips
Remove the space in the ui that was being used for chips.
Centralize some of the logic around calculating the action margins to aid
that.

Bug: 179922117
Test: Local build and flash and run
Change-Id: Icd2f894c858fab475c5411f3f7c412b899d5b220
2021-05-25 15:29:08 -07:00
Steven Ng 530f644788 Merge "Fix tabs abruptly reset during swipe" into sc-dev 2021-05-25 22:21:25 +00:00
TreeHugger Robot 17385ce33e Merge "Fix full widgets picker fast scroller height." into sc-dev 2021-05-25 21:43:40 +00:00
Vinit Nayak 063cb2d892 TaskMenu in overview UI polish
Bug: 188168717
Test: TaskMenuLooks closer to mocks.
Change-Id: I1560b66a48c4c70c7c79f7307b2b76f22e30c653
2021-05-25 14:42:35 -07:00
Sunny Goyal c4c3269206 Crossfading splashscreen if icon is themed
Bug: 188840653
Test: Manual
Change-Id: Ibd00bb1a94576a7512872eba39a936c174f9871d
2021-05-25 18:25:18 +00:00
Sunny Goyal 47da5d628c Merge "Using icon color for dot and halo" into sc-dev 2021-05-25 18:24:56 +00:00
Sunny Goyal a71269e372 Merge "Updating method for getting themed icon" into sc-dev 2021-05-25 18:24:38 +00:00
Alina Zaidi e6521ad542 Merge "Add more education tips for widgets. (1/3)" into sc-dev 2021-05-25 17:35:27 +00:00
TreeHugger Robot 8deaffed89 Merge "Fix ripple effect shown when tapping an app row in widgets picker" into sc-dev 2021-05-25 11:53:33 +00:00
TreeHugger Robot 1002981fd7 Merge "Adjust padding, margin of tabs in the WidgetsFullSheet" into sc-dev 2021-05-25 10:49:39 +00:00
Steven Ng 2c7c629704 Merge "Remove all apps tabs elevation" into sc-dev 2021-05-25 10:33:14 +00:00
Alina Zaidi 9d24de1353 Add more education tips for widgets. (1/3)
Show Arrow education tip on WidgetsBottomSheet. This tip is shown only
once either in widgets full sheet or bottom sheet.

Test: Tested manually
Bug: 185354491
Change-Id: I6d770ed0906a5cb0f5bcfe6ae0cd327b790cf164
2021-05-25 10:50:02 +01:00
shawnlin 3380ab3053 Support the nav animation in widget launch remote animation
Launcher now support remote animation for widget but doesn't add the nav
animation for this type of animation.

Add the nav animation in widget launch remote animation in launcher.

Bug: 185303414
Test: manual - launch a widget in launcher and observe the nav bar
Change-Id: I11f4bd75b9624118b8ffef09c99f54fc7f1fbbca
2021-05-25 03:43:25 +00:00
Steven Ng 21979aca50 Fix tabs abruptly reset during swipe
The indicator position has already been updated by
PersonalWorkPagedView#onScrollChanged. The updateIndicatorPosition
call in setActiveMarker has abruptly reset the mScrollOffset to a page
index rather than a [0f, 1f] offset.

Test: On a work profile device, swipe left & right in the all apps.
      Then, swipe left & right in the full widgets picker. In both
      cases, I no longer observe an abruptly reset of the tabs
      transition animation.
Bug: 187704466
Change-Id: I53c4ed3a98219093f3d61dfa4de2fe21ec88851c
2021-05-24 23:57:28 +01:00
Steven Ng e90dddaaa0 Fix full widgets picker fast scroller height.
1. Fix the app title to one line.
2. Use the measured height of a header view to estimate the available
   fast scroll bar height.

Test: Open full widgets picker. Scroll to the bottom by scroll gesture.
      Observe the fast scroll bar indicator is correctly shown.
      Scroll back to top and then use the fast scroll bar to scroll to
      the end of the page. Observe the last app row is aligned to the
      bottom of the page.
Bug: 188914448
Change-Id: I57a2419d1fbfc8f946a932eebfefb67ae0c07eb6
2021-05-24 18:05:56 +01:00
Steven Ng f375e8bebc Fix ripple effect shown when tapping an app row in widgets picker
Test: Open the full widgets and tap an app. Ripple effect is applied
      to the entire row rather than just on the arrow.
Bug: 188873069
Change-Id: Id77b2055f6bc31c12bb19e695ea44aeaff36c4a6
2021-05-24 16:32:56 +01:00
Steven Ng f4afb6bc17 Remove all apps tabs elevation
Test: Set up a work profile. Open all apps and observe no shadow around
      tabs.
Bug: 188727345
Change-Id: I5b8594002dbd8155b45376103d44fbda12ebe001
2021-05-24 14:55:33 +01:00
Steven Ng ede641bd77 Adjust padding, margin of tabs in the WidgetsFullSheet
Also remove elevation set to tab to remove unwanted shadow.

Test: Set up a work profile. Then, open the full widgets picker.
      Observe padding & margin of the work / personal tabs.
Bug: 188221455
Change-Id: I761cb1c1410f87c80a5fdca3803fb8b099d499d6
2021-05-24 11:40:16 +01:00
Jonathan Miranda 81f5ff3b3b Merge "Fix PathParser error when parsing app close interpolator in RTL languages." into sc-dev 2021-05-22 03:45:29 +00:00
Sunny Goyal 2f0595e76e Merge "Renamin TaskbarContainerView to TaskbarDragLayer" into sc-dev 2021-05-22 02:16:34 +00:00
TreeHugger Robot eb0a14ad79 Merge "Fixing missing unlinktoDeath" into sc-dev 2021-05-22 01:05:05 +00:00
Jon Miranda 7c9dca2df2 Fix PathParser error when parsing app close interpolator in RTL languages.
Setting locale to english so that the numbers don't get reverted

Bug: 188552618
Test: set language to arabic, swipe up to home
Change-Id: I736c83984b472d9ad09207927743c87b18637db4
2021-05-21 17:20:07 -07:00
Sunny Goyal b5596f72e4 Fixing missing unlinktoDeath
Bug: 186712316
Test: Manual
Change-Id: If06737403c346c5ccca533dec647e3a0691f1bfa
2021-05-21 15:29:33 -07:00
Sunny Goyal 5584513500 Renamin TaskbarContainerView to TaskbarDragLayer
Bug: 187353581
Test: Presubmit
Change-Id: I9164a956aaa896111f287ab4e97b091a7d4d30ee
2021-05-21 14:42:18 -07:00
Sunny Goyal 6755587219 Using icon color for dot and halo
Bug: 188839628
Test: Manual
Change-Id: I8a393cc7073d5a249619b4033ec860c55f17167a
2021-05-21 12:57:38 -07:00
Sunny Goyal e9d27f137f Updating method for getting themed icon
Bug: 183641907
Test: Manual
Change-Id: I417886acea1b518c184d8e7c649367cae841a7e4
2021-05-21 12:29:15 -07:00
TreeHugger Robot 576722164a Merge "Apply the current system window insets to launcher preview" into sc-dev 2021-05-21 18:00:07 +00:00
TreeHugger Robot 3350508bb6 Merge "Avoid drawing tall header when scrolling search results" into sc-dev 2021-05-21 17:34:42 +00:00
Vadim Tryshev 9a6ba8cfa4 Merge "Improving TAPL messaging" into sc-dev 2021-05-21 17:18:10 +00:00
Songchun Fan 6a69ff55b7 Merge "Reapply All Apps icons on download complete." into sc-dev 2021-05-21 15:59:58 +00:00
Sunny Goyal 67914aff50 Merge changes from topic "revert-14664190-JGHJCCJYPM" into sc-dev
* changes:
  Initiate taskbar only after the user is unlocked
  Revert "Revert "Renaming TaskbarController to LauncherTaskbarUIC..."
  Revert^2 "Moving taskbar lifecycle to TouchInteractionService"
2021-05-21 15:45:11 +00:00
Alina Zaidi 260c38c4a0 Align 'No widgets available' text box properly in Widget picker.
Bug: 186209657
Test: Tested manually
Change-Id: I85fa43cd745a8c9f9601d25ed3a35f512506234d
2021-05-21 10:49:03 +01:00
Steven Ng 9f194ee290 Merge "Clear widgets search bar focus when the user taps outside the search bar" into sc-dev 2021-05-21 08:52:50 +00:00
Sunny Goyal 301eaf2b8c Initiate taskbar only after the user is unlocked
Bug: 188755902
Test: Presubmit
Change-Id: Ida4bc07f45396e82ab404a617aa6833afeea78bc
2021-05-21 07:05:38 +00:00
Sunny Goyal f8b1c3b38e Revert "Revert "Renaming TaskbarController to LauncherTaskbarUIC..."
Revert submission 14664190

Reason for revert: Errorprone fixed in ag/14667108
Reverted Changes:
Icd1ddd43e:Revert "Renaming TaskbarController to LauncherTask...
I465013697:Revert "Moving taskbar lifecycle to TouchInteracti...

Change-Id: I1dcccb43d8206830e2b7c1974e775c94ac8c542f
Bug: 187353581
2021-05-21 07:05:31 +00:00
Sunny Goyal d5500548dc Revert^2 "Moving taskbar lifecycle to TouchInteractionService"
430465a3d5
Bug: 187353581
Change-Id: I7b2280d16adfafd3e85ffc1d22e32d0c00d12b67
2021-05-21 07:05:02 +00:00