Commit Graph

32741 Commits

Author SHA1 Message Date
TreeHugger Robot d751b126e3 Merge "Fix full widgets picker fast scroller height." into sc-dev am: 17385ce33e am: 9d308d0af0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14683794

Change-Id: I53dec94dd5f3c82556218f4001a60d1d082e0875
2021-05-25 22:38:04 +00:00
TreeHugger Robot 9d308d0af0 Merge "Fix full widgets picker fast scroller height." into sc-dev am: 17385ce33e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14683794

Change-Id: I778e855c91ace63fc7386a6995056adf4fe9e228
2021-05-25 22:16:12 +00:00
TreeHugger Robot 17385ce33e Merge "Fix full widgets picker fast scroller height." into sc-dev 2021-05-25 21:43:40 +00:00
Winson Chung 64bd150d6a Merge "Revert "Enable SplitSelect flag by default"" into sc-v2-dev am: e6ba6cf940
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14722088

Change-Id: I1aded82a92c42255b23869314777f9f782f0cb2e
2021-05-25 20:46:30 +00:00
Winson Chung e6ba6cf940 Merge "Revert "Enable SplitSelect flag by default"" into sc-v2-dev 2021-05-25 20:27:49 +00:00
Winson Chung bdaa6036ec Revert "Enable SplitSelect flag by default"
This reverts commit 3f47826339.

Reason for revert: b/189245318

Bug: 189245318

Change-Id: I5e6704711cc7577102123ffc67c97a5644e7e86b
2021-05-25 20:26:01 +00:00
Sunny Goyal 285a492a09 Merge "Using icon color for dot and halo" into sc-dev am: 47da5d628c am: 1d5c0754d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14684870

Change-Id: Ib8c1d72e5f068bcbb7319d72d4513888a388c077
2021-05-25 19:00:19 +00:00
Sunny Goyal 02cd481027 Merge "Updating method for getting themed icon" into sc-dev am: a71269e372 am: 7c6426c2b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14682086

Change-Id: Ib04b60c4c30af5fe2284b6718af941666ea80f6a
2021-05-25 19:00:11 +00:00
Sunny Goyal 3d22fce89b Merge "Using icon color for dot and halo" into sc-dev am: 47da5d628c am: 6ba7479cf5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14684870

Change-Id: Ibe400b26bf6ab6466d7c3a3753d307c37b706c45
2021-05-25 18:56:47 +00:00
Sunny Goyal 6150dd4a64 Merge "Updating method for getting themed icon" into sc-dev am: a71269e372 am: 867aeb5436
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14682086

Change-Id: Ib004f44dd66e019cdd913b4f1ca91c37eb39af3c
2021-05-25 18:56:38 +00:00
Sunny Goyal 6ba7479cf5 Merge "Using icon color for dot and halo" into sc-dev am: 47da5d628c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14684870

Change-Id: I4683179ba16afb819a7059ea3fa5f1f2321c72ff
2021-05-25 18:43:35 +00:00
Sunny Goyal 867aeb5436 Merge "Updating method for getting themed icon" into sc-dev am: a71269e372
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14682086

Change-Id: I5a328837285d1600dd80d0ff9a17cf577f546210
2021-05-25 18:43:23 +00:00
Sunny Goyal 1d5c0754d6 Merge "Using icon color for dot and halo" into sc-dev am: 47da5d628c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14684870

Change-Id: I771a69b3c734ba3de73a84d07a6ce29c125ecc40
2021-05-25 18:41:48 +00:00
Sunny Goyal 7c6426c2b4 Merge "Updating method for getting themed icon" into sc-dev am: a71269e372
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14682086

Change-Id: I4f15813317929f1e7ac9e09b34fe50e7d636aaf1
2021-05-25 18:41:39 +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 7a9a9eea19 Merge "Add more education tips for widgets. (1/3)" into sc-dev am: e6521ad542 am: b4035643f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14620021

Change-Id: Ibf9d55278f721dba10346bb76485556cd8f5d215
2021-05-25 18:11:26 +00:00
Alina Zaidi 866bb04449 Merge "Add more education tips for widgets. (1/3)" into sc-dev am: e6521ad542 am: ba4eaf73b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14620021

Change-Id: I9e3d9742444c679b2bb4e4e117f4f92a6f022388
2021-05-25 18:09:33 +00:00
Alina Zaidi ba4eaf73b5 Merge "Add more education tips for widgets. (1/3)" into sc-dev am: e6521ad542
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14620021

Change-Id: I5f8e69315a7752ac2bf0484ec5729016ee1a5687
2021-05-25 17:56:30 +00:00
Alina Zaidi b4035643f3 Merge "Add more education tips for widgets. (1/3)" into sc-dev am: e6521ad542
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14620021

Change-Id: I513616572145f5079d820c956f6c9314c35615dc
2021-05-25 17:54:33 +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 4d6e0c8677 Merge "Enable SplitSelect flag by default" into sc-v2-dev am: 1919443e37
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14647731

Change-Id: Ief27ebd1b90cefe435dc8558b33f354d1e8308c1
2021-05-25 16:46:12 +00:00
TreeHugger Robot 1919443e37 Merge "Enable SplitSelect flag by default" into sc-v2-dev 2021-05-25 16:29:10 +00:00
TreeHugger Robot 482021171a Merge "Fix ripple effect shown when tapping an app row in widgets picker" into sc-dev am: 8deaffed89 am: ce0e15d409
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14701660

Change-Id: Idac264b6a872711eebcdf62a8b260f135498a9d7
2021-05-25 12:57:47 +00:00
TreeHugger Robot 18d4cb6653 Merge "Adjust padding, margin of tabs in the WidgetsFullSheet" into sc-dev am: 1002981fd7 am: 057a0de278
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14602830

Change-Id: I4b69a84ea3e2a516f67dbf961642dc690a153a54
2021-05-25 12:57:39 +00:00
Steven Ng 680ec044e5 Merge "Remove all apps tabs elevation" into sc-dev am: 2c7c629704 am: d78ad7d377
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14682327

Change-Id: I603b4628e346f7b8bb822f775558916ccfd2bfa8
2021-05-25 12:57:31 +00:00
shawnlin 121c47cb3e Support the nav animation in widget launch remote animation am: 3380ab3053 am: a55c5923d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14694591

Change-Id: I65912499a45939d14982e5d0dd0fab223fc03a6a
2021-05-25 12:57:21 +00:00
András Klöczl 614a98fdea Merge "Add two panel home support for page binding logic" into sc-v2-dev am: adbe369451
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14589972

Change-Id: I5ba292eb91bdafc480b9032c07fb0ad9e5c77192
2021-05-25 12:24:49 +00:00
TreeHugger Robot 27a2f3ca25 Merge "Fix ripple effect shown when tapping an app row in widgets picker" into sc-dev am: 8deaffed89 am: 21d92dc101
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14701660

Change-Id: I3973a0917f28da2e67545a89aad3505607d3b949
2021-05-25 12:24:33 +00:00
TreeHugger Robot 744123adea Merge "Adjust padding, margin of tabs in the WidgetsFullSheet" into sc-dev am: 1002981fd7 am: 4cd5fee186
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14602830

Change-Id: Ie439f108e421682f778f5dd29712526f45421fd9
2021-05-25 12:24:14 +00:00
Steven Ng f3738aba22 Merge "Remove all apps tabs elevation" into sc-dev am: 2c7c629704 am: 2ed3087743
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14682327

Change-Id: Ibb1803b1722bd370454770f352a2b80b8184ff44
2021-05-25 12:23:56 +00:00
shawnlin a66d58196e Support the nav animation in widget launch remote animation am: 3380ab3053 am: b3b2b64588
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14694591

Change-Id: I5e96da20feb2660ba809aed77772a3a645b23ea5
2021-05-25 12:23:37 +00:00
Alex Chau 95f4548a7d Always focus a task in overview am: 960a2b2696
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14622874

Change-Id: Icc0c5acb6701347d1d68e45819a8f03406848441
2021-05-25 12:23:17 +00:00
András Klöczl adbe369451 Merge "Add two panel home support for page binding logic" into sc-v2-dev 2021-05-25 12:04:55 +00:00
TreeHugger Robot 21d92dc101 Merge "Fix ripple effect shown when tapping an app row in widgets picker" into sc-dev am: 8deaffed89
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14701660

Change-Id: I7b7c006bf4af71badad74897592fbbd273fc5961
2021-05-25 11:59:30 +00:00
TreeHugger Robot 4cd5fee186 Merge "Adjust padding, margin of tabs in the WidgetsFullSheet" into sc-dev am: 1002981fd7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14602830

Change-Id: Iab84c81890bbcc9ee50507513f62e0e8cddd812a
2021-05-25 11:59:13 +00:00
Steven Ng 2ed3087743 Merge "Remove all apps tabs elevation" into sc-dev am: 2c7c629704
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14682327

Change-Id: Id206122b6b60ab3228388dca8db67db8318fefd3
2021-05-25 11:58:29 +00:00
TreeHugger Robot ce0e15d409 Merge "Fix ripple effect shown when tapping an app row in widgets picker" into sc-dev am: 8deaffed89
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14701660

Change-Id: If1a3daade48746f295bc56f99ff17cff55e60b06
2021-05-25 11:57:40 +00:00
shawnlin b3b2b64588 Support the nav animation in widget launch remote animation am: 3380ab3053
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14694591

Change-Id: I9e8632a69c8baa0ffdb4b3d1e83d3f361e40d340
2021-05-25 11:55:07 +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 057a0de278 Merge "Adjust padding, margin of tabs in the WidgetsFullSheet" into sc-dev am: 1002981fd7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14602830

Change-Id: I69b13b716f49787ad2ac5f4e458be05391d6abe5
2021-05-25 11:50:36 +00:00
Steven Ng d78ad7d377 Merge "Remove all apps tabs elevation" into sc-dev am: 2c7c629704
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14682327

Change-Id: I7a67ee8b6d64c633bcd898e812f3d145d8972f77
2021-05-25 11:50:26 +00:00
shawnlin a55c5923d3 Support the nav animation in widget launch remote animation am: 3380ab3053
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14694591

Change-Id: I71a5271424f76bbbeed44ae6c094f122defee67f
2021-05-25 11:49:41 +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
Andras Kloczl 55edfe55f7 Add two panel home support for page binding logic
There's a logic which prioritizes the binding for the
current page and defers the other pages' binding.
If two panel home is enabled, we want to bind both pages
together. LauncherPageRestoreHelper has been created to
contain the logic for persisting restoring and calculating
which pages to load immediately.

Test: manual + run LauncherPageRestoreHelperTest robo test
Bug: 174464691
Change-Id: I57ac3f7150303b95b272e922f44bda26f9d5ce2a
2021-05-24 23:22:06 +02:00
Alex Chau 960a2b2696 Always focus a task in overview
- Focus first task when applying load plan
- Focus the next task in shorter row when focused task is dismissed, scale the snapshot and translate the task into focused position
- Always show actions view as there is always a focused task. Update scroll alpha when toggling grid enabled
- In fallback recents, take into account that home task will be dismissed when determining rows for the grid, ensuring next focused task won't affect row balancing
- Bring back clearAllShortTotalCompensation as there isn't always a snappedTaskView (e.g. when snapped to ClearAllButton)
- Ensure that getFocusedTaskView is only used when showAsGrid is true

Bug: 187839470
Fixes: 188001858
Fixes: 189057812
Test: manual
Change-Id: I6f31ef469c58fda70d2dd8caa2ee7d8a80c7f03b
2021-05-24 18:13:04 +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