Commit Graph

58436 Commits

Author SHA1 Message Date
Steven Ng 755c2c54c7 Merge "Use category icon for pending conversation widgets" into sc-dev am: d35dcdec05
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142493

Change-Id: Id2b6a1429d1b8f84e901fffc0e669c357888d9be
2021-06-29 23:16:56 +00:00
Jonathan Miranda 576e567f0f Merge "Fix bug where status bar was not set properly." into sc-dev am: 1b6a8b2255
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15146553

Change-Id: I1e4b057e8a5f75c823eb15a5539c3130ddb06183
2021-06-29 23:16:50 +00:00
Steven Ng 96702f890b Merge "Use category icon for pending conversation widgets" into sc-dev am: d35dcdec05
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142493

Change-Id: I9add1a6bef277a7be2f04406946ff8dd19fcb64e
2021-06-29 23:16:01 +00:00
Jonathan Miranda 77c4417f7a Merge "Fix bug where status bar was not set properly." into sc-dev am: 1b6a8b2255
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15146553

Change-Id: I48b7ccb0dc656cd8912315bcce28911e0448e2e1
2021-06-29 23:15:47 +00:00
Steven Ng 47c3cb02d5 Merge "Use category icon for pending conversation widgets" into sc-dev am: d35dcdec05
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142493

Change-Id: I39b454ae03ea578178bf1a3df0b9c741688aceb7
2021-06-29 23:15:31 +00:00
Jonathan Miranda 99d61c87a9 Merge "Fix bug where status bar was not set properly." into sc-dev am: 1b6a8b2255
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15146553

Change-Id: Id0069cd48e1f190b67b69c6e6633745b1beca8f3
2021-06-29 23:15:23 +00:00
Steven Ng d35dcdec05 Merge "Use category icon for pending conversation widgets" into sc-dev 2021-06-29 23:15:04 +00:00
Jonathan Miranda 1b6a8b2255 Merge "Fix bug where status bar was not set properly." into sc-dev 2021-06-29 23:03:15 +00:00
Jon Miranda fa73c02172 Set elevation of popup and arrow to match. This ensures no shadow overlap.
Bug: 191823198
Test: long press app where arrow is on top and bottom in:
      workspace, all apps, and search UI

Change-Id: Icc4ac259607175d5e12447a844ba166ba28b74af
2021-06-29 15:49:46 -07:00
Yogisha Dixit fb54677ddb Merge "Show resize frame when widget is added." into sc-dev am: 419ee4599e am: 1d161e8209 am: 8a89bd5b92
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13956205

Change-Id: If1181374282f361ed29a010b409aa6a9425a3248
2021-06-29 22:37:25 +00:00
Yogisha Dixit d3f6b12611 Merge "Show resize frame when widget is added." into sc-dev am: 419ee4599e am: ffd5acea77 am: b87c950a69
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13956205

Change-Id: I4161a630b2e6dcd4c78ab17b8cb9ba5f5750d6e0
2021-06-29 22:35:08 +00:00
Yogisha Dixit 8a89bd5b92 Merge "Show resize frame when widget is added." into sc-dev am: 419ee4599e am: 1d161e8209
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13956205

Change-Id: Idff747d76b311212f6cf83cc318d603d66a788c2
2021-06-29 21:54:51 +00:00
Hyunyoung Song 0b9537e6fc Rebind recycler views if launcher activity restarted
Bug: 185038312
Test: manual
TL;DR;;
What was attempted but was too much refactoring of the code.

Failed attempt #1: try re triggering the search.
This was not trivial as SearchSession object is yet created.

Failed attempt #2: Restoring AdapterItems in AlphabeticalAppsList
This meant AdapterItems class and also it's children
had to extend Parceleable object.

Ultimate fix:
Original issue of dupe view id among slice and work recyclerview
should be fixed. And restoring should just work.

Change-Id: I1bddd6aa5bc736ade3b02f69aa947d64cfa467d6
2021-06-29 14:52:57 -07:00
Yogisha Dixit b87c950a69 Merge "Show resize frame when widget is added." into sc-dev am: 419ee4599e am: ffd5acea77
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13956205

Change-Id: I9c9ce03e7ea5a6a6c955026e884f3426501bd5ec
2021-06-29 21:50:12 +00:00
Yogisha Dixit 326ad0617f Merge "Show resize frame when widget is added." into sc-dev am: 419ee4599e am: 41ce5a6a2a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13956205

Change-Id: I0ec365e612a88fb8639941226c9d8d6451ece8aa
2021-06-29 21:35:53 +00:00
Jon Miranda 401b921c19 Fix bug where status bar was not set properly.
- Need to check both alpha of the view, and alpha of the background color.

Bug: 187467559
Test: check status bar colors when using:
      - on white wallpaper,
      - on black wallpaper,
      - on wallpaper with white text
      - on wallpaper with dark text

Change-Id: Ie6f34d34dfa9dea716f95bd6a95125fbd650fc29
2021-06-29 14:23:55 -07:00
Yogisha Dixit ffd5acea77 Merge "Show resize frame when widget is added." into sc-dev am: 419ee4599e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13956205

Change-Id: I318890ec7296fdd9f2176cf19e77898ed5acbf0e
2021-06-29 21:21:45 +00:00
Yogisha Dixit 41ce5a6a2a Merge "Show resize frame when widget is added." into sc-dev am: 419ee4599e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13956205

Change-Id: I33ee7c8ba6380e64bbab23d8af9ba0672ed11d36
2021-06-29 21:20:57 +00:00
Yogisha Dixit 1d161e8209 Merge "Show resize frame when widget is added." into sc-dev am: 419ee4599e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13956205

Change-Id: I40b2ab79e02502b9aeda11d89fc3dcd439b4c9e3
2021-06-29 21:19:55 +00:00
Yogisha Dixit 419ee4599e Merge "Show resize frame when widget is added." into sc-dev 2021-06-29 21:07:34 +00:00
Brian Isganitis 3b39f3164b Intercept touch events for launcher preview root view
This change prevents any accidental touches on any widgets in the
preview.

Test: Tapping on launcher preview in wallpaper app should never activate
a widget.
Bug: 191623924

Change-Id: I98d462eca699cf368dcd5894f15584f280932ccc
2021-06-29 16:07:16 -04:00
Lucas Dupin 0f00c35268 Decouple zooms and blurs on app launch
We'd like to be able to disable blurs during app launch, but without
disabling zooms as well. The previous sysprop would set the depth of
BackgroundAppState to 0, when what we want is to conserve wallpaper
zoom.

Bug: 191969790
Test: adb shell setprop ro.launcher.blur.appLaunch false
Change-Id: Ie4b26096f6ac723c3981bba2829557e6cc6c733b
2021-06-29 13:02:12 -07:00
Jon Miranda c26e5fff7c Allow two lines max for text view in system shortcuts.
This makes it more accessible for more languages.

Bug: 185770234
Test: set language to Spanish, ensure 2 lines
      ensure deep shortcuts remain 1 lines

Change-Id: I652fe6a51bde5d8c30f695a0a56f0879412bca01
2021-06-29 12:53:27 -07:00
Samuel Fufa 6dd00b8451 Merge "Update snackbar color" into sc-dev am: 48ec126d8b am: d3f63d9565 am: 743596fb49
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15129885

Change-Id: I6b6d79f9487c30ab9f1f7b12fdb7f0cd46a70402
2021-06-29 19:44:01 +00:00
Samuel Fufa ff600510c2 Merge "Update snackbar color" into sc-dev am: 48ec126d8b am: 42064e0d30 am: 03f3592799
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15129885

Change-Id: Ibfcab2cb44d5a4c8a5eb9fa15adc4d4f111debe7
2021-06-29 19:42:21 +00:00
Samuel Fufa 743596fb49 Merge "Update snackbar color" into sc-dev am: 48ec126d8b am: d3f63d9565
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15129885

Change-Id: I425cc4a8d0e3a04baf3fbd9b8501d6b9fa36fc69
2021-06-29 19:25:41 +00:00
Samuel Fufa 03f3592799 Merge "Update snackbar color" into sc-dev am: 48ec126d8b am: 42064e0d30
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15129885

Change-Id: Id38337cc942d3a632e1f04ca20e7c90cb6a1e8eb
2021-06-29 19:24:45 +00:00
Samuel Fufa c5b11d6163 Merge "Update snackbar color" into sc-dev am: 48ec126d8b am: e852e65a9e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15129885

Change-Id: I9e4fd5d7f9268903c23482a0c9851098c90bc483
2021-06-29 19:24:08 +00:00
Samuel Fufa 42064e0d30 Merge "Update snackbar color" into sc-dev am: 48ec126d8b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15129885

Change-Id: Ib158406b7300fe1dcb77279cba80d764bc294e29
2021-06-29 19:05:06 +00:00
Samuel Fufa d3f63d9565 Merge "Update snackbar color" into sc-dev am: 48ec126d8b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15129885

Change-Id: Id5aaf7b520de0ee62cae76365d0fa2a8bde19bed
2021-06-29 19:04:25 +00:00
Alina Zaidi 192fdddcb3 Merge "Make sure search recycler view is bound to fast scroller if user is in search mode at the time of attachment of work/personal recycler view." into sc-dev am: 7ed32025f1 am: 890df3490c am: 4c0d3d37f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142492

Change-Id: Ie2f410cc5d97ab3e064e971396e68bac67e95b0e
2021-06-29 19:03:59 +00:00
Samuel Fufa e852e65a9e Merge "Update snackbar color" into sc-dev am: 48ec126d8b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15129885

Change-Id: I4cf6f3ff18d95c7585e21ee6c10fa90630e99e52
2021-06-29 19:03:46 +00:00
Alina Zaidi 13452ecb4e Merge "Make sure search recycler view is bound to fast scroller if user is in search mode at the time of attachment of work/personal recycler view." into sc-dev am: 7ed32025f1 am: dd0b46e6db am: ff4e703bda
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142492

Change-Id: I663059a182459e2c5320f3fb640a12cdcbff55e5
2021-06-29 19:03:20 +00:00
Alex Chau ba61b98fca Snap to relative position to snappd task when dismissing
- Calculate the diff to snapped page scroll and apply in onLayout, so tasks won't jump after dismiss when not in snapped position
- In grid, always keep the relateive snapped page unchanged to avoid jump

Bug: 188793333
Test: manual
Change-Id: Id11c2d700dc55440de39cc7409d06a712cedc9bc
2021-06-29 19:54:21 +01:00
Samuel Fufa 48ec126d8b Merge "Update snackbar color" into sc-dev 2021-06-29 18:48:38 +00:00
Alina Zaidi 4c0d3d37f0 Merge "Make sure search recycler view is bound to fast scroller if user is in search mode at the time of attachment of work/personal recycler view." into sc-dev am: 7ed32025f1 am: 890df3490c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142492

Change-Id: I496043ee57e90e263fc2ed1b818ce9164f5d7dbc
2021-06-29 18:42:51 +00:00
Alina Zaidi ff4e703bda Merge "Make sure search recycler view is bound to fast scroller if user is in search mode at the time of attachment of work/personal recycler view." into sc-dev am: 7ed32025f1 am: dd0b46e6db
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142492

Change-Id: Ib28fa301f01f9bf3493891c0fcf911b8a1832d9a
2021-06-29 18:42:14 +00:00
Alina Zaidi 2eaba8c269 Merge "Make sure search recycler view is bound to fast scroller if user is in search mode at the time of attachment of work/personal recycler view." into sc-dev am: 7ed32025f1 am: fea6b39c10
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142492

Change-Id: I23f816a8f0f49f62b1bcfd3998182bdaa05b8686
2021-06-29 18:41:45 +00:00
Alina Zaidi dd0b46e6db Merge "Make sure search recycler view is bound to fast scroller if user is in search mode at the time of attachment of work/personal recycler view." into sc-dev am: 7ed32025f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142492

Change-Id: I19abded4e3e36cf1adf9ba9185b7debb543fd54d
2021-06-29 18:30:16 +00:00
Alina Zaidi fea6b39c10 Merge "Make sure search recycler view is bound to fast scroller if user is in search mode at the time of attachment of work/personal recycler view." into sc-dev am: 7ed32025f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142492

Change-Id: Idc77ebec4a856ebebb3e87854e29349c2ee9654c
2021-06-29 18:29:28 +00:00
Alina Zaidi 890df3490c Merge "Make sure search recycler view is bound to fast scroller if user is in search mode at the time of attachment of work/personal recycler view." into sc-dev am: 7ed32025f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142492

Change-Id: I9e72697fd77b867c06734d539b699b06ea0a2752
2021-06-29 18:28:28 +00:00
Alina Zaidi 7ed32025f1 Merge "Make sure search recycler view is bound to fast scroller if user is in search mode at the time of attachment of work/personal recycler view." into sc-dev 2021-06-29 18:13:23 +00:00
Steven Ng 680eab8c3b Merge "Set the widgets pickers' width to at most 80% of screen width on large screen devices" into sc-v2-dev am: c548ab92f9 am: 3648788c16
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15106955

Change-Id: I588e950de7a870f2ad7305f0f7fef61c11b6a656
2021-06-29 17:44:57 +00:00
Steven Ng 3648788c16 Merge "Set the widgets pickers' width to at most 80% of screen width on large screen devices" into sc-v2-dev am: c548ab92f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15106955

Change-Id: Id5af36135e1277c9621403ed74022656f86eacf7
2021-06-29 17:31:46 +00:00
Yogisha Dixit 037a5362d8 Show resize frame when widget is added.
I referenced the code in Workspace.java that updates the widget view's
layout params before showing the resize frame.

Test: manual, AddWidgetTest and AddConfigWidgetTest tapl tests
Bug: 183437963
Change-Id: I6655917878fa22d6084b4bf39fc0661e7278d6f9
2021-06-29 18:25:38 +01:00
Steven Ng c548ab92f9 Merge "Set the widgets pickers' width to at most 80% of screen width on large screen devices" into sc-v2-dev 2021-06-29 17:18:35 +00:00
Jon Miranda f70265f4ec Add split_display device profile.
Bug: 192215417
Test: manual set isSplitDisplay=true, ensure the added device profile
      gets set on device
Change-Id: Ibe33c33d3af140352c0bb4fb44460106ad898285
2021-06-29 17:10:12 +00:00
Steven Ng 12f7a59e5c Use category icon for pending conversation widgets
Fix: 192333050
Test: Manual
Change-Id: Ie3895cd4747f1bec1c8ca9af82347bb0eafa7415
2021-06-29 18:04:09 +01:00
Alina Zaidi 00b313fbe9 Merge "Modify ripple for cancel button in search bar in widget picker." into sc-dev am: 8fb6ca3e5e am: 6644b6f3d7 am: bf13bd1d70
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142312

Change-Id: I21cfedb64d4d8d9838d72ecf4e241eee0bf59891
2021-06-29 17:03:05 +00:00
Alina Zaidi 4d317a18c6 Merge "Modify ripple for cancel button in search bar in widget picker." into sc-dev am: 8fb6ca3e5e am: 5f7f8c3f74 am: fedd7ee13b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142312

Change-Id: Ib81af7b648b132aae752ee8d16e51a4e1fdd6e74
2021-06-29 17:02:36 +00:00