Commit Graph

16725 Commits

Author SHA1 Message Date
Sunny Goyal a502aa313b Removing buildLayer call on workspace pages.
> buildLayer was followed by setLayerType(NONE) which was causing the
layer to get destroyed immediately and hece was never useful.
> Also removing mAnimatingViewIntoPlace as after setting this to true
updateChildLayer was never being called.

Change-Id: I08a6da25de002247c956308973f1675c0e61e15c
2017-10-02 16:10:35 -07:00
Sunny Goyal d66e3b6a65 Removing unnecessary layout pass happening due when chaning gradientView visibility
Change-Id: I0d8f0c2c995885143156a27536b0a2185d5eb0b8
2017-10-02 15:27:21 -07:00
Sunny Goyal 326403e958 Moving some calls off the UI thread
This saves ~5ms in onNewIntent

Bug: 67305604
Change-Id: Ic97727b1c526e50bd3c8a1d8f511e1d7fd5e05e7
2017-10-02 14:50:09 -07:00
TreeHugger Robot ec21a599f4 Merge changes from topic "am-337c344f-ec88-4e4e-9ad7-07a92571f781" into ub-launcher3-master
* changes:
  [automerger] Remove discovery bounce for demo users am: 3993348043
  Remove discovery bounce for demo users
2017-10-02 21:07:21 +00:00
Android Build Merger (Role) ea8e140328 [automerger] Remove discovery bounce for demo users am: 3993348043
Change-Id: Id561b960f1b080ef9bf5d6245513401e859e2afb
2017-10-02 20:49:45 +00:00
Adam Cohen 3993348043 Remove discovery bounce for demo users
Bug 67116550

Change-Id: I8a27685f91e201072c0669c102077affe550fab6
2017-10-02 20:49:30 +00:00
Sunny Goyal fca6bc9dce Adding a utility method to simplify method tracing
Change-Id: I79ef0aa5d65b933f4b7f0520fc8bac26e366da2d
2017-10-02 13:47:42 -07:00
TreeHugger Robot 230cf17fe6 Merge "Fix predictiveApps Bug: 67010327" into ub-launcher3-dorval-polish2 2017-09-29 20:49:18 +00:00
Android Build Merger (Role) f9468f4dec [automerger] Fix predictiveApps Bug: 67010327 am: 7a77f1e678
Change-Id: I3f4eec8ee9e1dff6b75111060fdcaadfebe5000d
2017-09-29 20:42:14 +00:00
Hyunyoung Song 7a77f1e678 Fix predictiveApps
Bug: 67010327

Change-Id: Iab6ea790e99bb66bd0d7d4f07a8ad9fa05387d13
2017-09-29 13:41:43 -07:00
Adam Cohen 8831252399 Merge changes from topic "demoModeTopic" into ub-launcher3-dorval-polish2
* changes:
  [automerger] Demo mode default layout support am: 2782449da6
  Demo mode default layout support
2017-09-29 20:38:08 +00:00
Adam Cohen ce5229b642 Merge changes from topic "demoModeTopic" into ub-launcher3-master
* changes:
  [automerger] Demo mode default layout support am: 2782449da6 am: ea1212a38a
  [automerger] Demo mode default layout support am: 2782449da6
  Demo mode default layout support
2017-09-29 20:38:08 +00:00
Sunny Goyal 0edbb19c71 Merge changes from topic "am-ce7ed750-6b89-4e1c-80d9-bd9a3ec4b170" into ub-launcher3-master
* changes:
  [automerger] Caching system app flag to avoid unnecessary system calls when scrolling am: 6b0aa870b8
  Caching system app flag to avoid unnecessary system calls when scrolling
2017-09-29 19:57:07 +00:00
Sunny Goyal f2dd4216c1 Removing extraction service and palette api dependency
Change-Id: I30ad1a1462a97b6bc03f8e386ae3058c7fe022e5
2017-09-29 10:40:08 -07:00
Android Build Merger (Role) 165ff84d8e [automerger] Demo mode default layout support am: 2782449da6 am: ea1212a38a
Change-Id: Iaf6a29db70901d76125e79c86ca7dda0bf34ea67
2017-09-29 15:49:46 +00:00
Android Build Merger (Role) ea1212a38a [automerger] Demo mode default layout support am: 2782449da6
Change-Id: I0d03e760f97c6f9984ad0bf9e8f9e8c7a8a8b5c7
2017-09-29 15:49:43 +00:00
Adam Cohen 2782449da6 Demo mode default layout support
67062454

Change-Id: Ic060d3d7dba4fffe688dddf7cd04c48e4baaf813
2017-09-29 15:49:34 +00:00
Android Build Merger (Role) 9c73d4ff0c [automerger] Caching system app flag to avoid unnecessary system calls when scrolling am: 6b0aa870b8
Change-Id: I88759881bf7b22e691186b8f11f1bc7912537864
2017-09-29 14:55:42 +00:00
Sunny Goyal 6b0aa870b8 Caching system app flag to avoid unnecessary system calls
when scrolling

Bug: 65493000
Change-Id: If60ec6dec23e7efa1031d72e76775fa2449bcd7b
2017-09-29 07:55:25 -07:00
Sunny Goyal 9b8e36b95d Avoiding duplicate calls to Bitmap.getPixel(x, y)
Change-Id: I24414b41e9b0e9833cd4e962187a08672bc86c46
2017-09-28 19:21:35 -07:00
Mario Bertschler 230612f502 Fixing content description of a promise icon that is fully downloaded.
Bug: 65779803
Change-Id: I912a70310c6a44f0b0b443cebf77608fd19bdc71
2017-09-27 17:05:21 -07:00
Sunny Goyal aa3a2baab6 Simplifying drag preview generation
> Fixing wrong icon normalization when dragging a folder icon
> Reusing the preview bitmap for creating dragOutline
> Generating drag outline on the background thread

Bug: 35428783
Change-Id: I01e724ba63404302090ee1e562f6c2fc7147ba2f
2017-09-27 09:10:05 -07:00
Jon Miranda fc2bf24022 Remove assumptions from swap prediction logic.
Bug: 64689250
Change-Id: If54ac03dec7d8c09f951b3ffeb7732202e3f1562
2017-09-20 18:28:39 +00:00
Jon Miranda 4f1545ddee Clean up span calculations in LauncherAppWidgetProviderInfo.
Using the results from DeviceProfile#getCellSize instead of
manually computing the cell sizes.

Bug: 63850436
Change-Id: I1de3871756a8b0e9bc8c5f9c2c1f386bb8dc31a2
2017-09-20 11:09:42 -07:00
Jonathan Miranda 8c220d1311 [automerger] Move orientation initialization to onCreate. am: 11ee2f6e8f
Change-Id: Ic4928769ab2891a7a709ed57404298a988baec1d
2017-09-20 17:19:20 +00:00
Jon Miranda 11ee2f6e8f Move orientation initialization to onCreate.
Bug: 64916689
Change-Id: Iacc04dcc261fc049b83cb81792975414fb00b3cc
2017-09-20 10:18:41 -07:00
TreeHugger Robot 0520395d66 Merge "Change rule so that multi-window labels are shown if there is space." into ub-launcher3-master 2017-09-20 15:47:26 +00:00
Jonathan Miranda ef4697fdad [automerger] Fix bug where widgets are inflated in the wrong orientation. am: 6bed350b75
Change-Id: I9d4bdaba96fe6afc90a48a141cd3af640b592a7a
2017-09-19 21:43:36 +00:00
Jon Miranda 6bed350b75 Fix bug where widgets are inflated in the wrong orientation.
The bug is that in onResume, the context may tell us the wrong
orientation.

As a workaround, we store the orientation that the Launcher
is created with, and we use that orientation to check whether
we actually need to reinflate the widgets.

Bug: 64916689
Change-Id: I5194debbd217a573d1f177c31d8c0abdf9da51b5
2017-09-19 14:43:17 -07:00
Jon Miranda 0cd04571d2 Change rule so that multi-window labels are shown if there is space.
ie. Taimen has enough room to show the labels in mw mode.

Bug: 65778773
Change-Id: If585f3f975b44d17ea6e07f23c50758998bbb564
2017-09-19 11:31:42 -07:00
TreeHugger Robot d926a9316f Merge "Fixing widgets not getting restored when the corresponding system app is enabled" into ub-launcher3-dorval-polish2 2017-09-18 17:14:10 +00:00
TreeHugger Robot 291e4d2420 Merge changes from topic "am-1de652e5-383f-4291-b4b5-dee384ddf1ba" into ub-launcher3-master
* changes:
  [automerger] Fixing widgets not getting restored when the corresponding system app is enabled am: adaf210794
  Fixing widgets not getting restored when the corresponding system app is enabled
2017-09-18 17:14:10 +00:00
Tony Wickham 42b5f52b36 Merge "Ignore clicks on notifications that don't have intents." into ub-launcher3-dorval-polish2 2017-09-18 17:11:33 +00:00
Sunny Goyal 0d992b903c [automerger] Fixing widgets not getting restored when the corresponding system app is enabled am: adaf210794
Change-Id: I91d976d1985a72737d5a365898dbfc9a6a18cd68
2017-09-18 17:04:45 +00:00
Sunny Goyal adaf210794 Fixing widgets not getting restored when the corresponding system app is enabled
Bug: 64723295
Change-Id: I143b554087e6ff8cfbdb5f02d53fdcc7a1ce3b12
2017-09-18 10:04:37 -07:00
Tony Wickham 716688f50e [automerger] Ignore clicks on notifications that don't have intents. am: 22cb37745c
Change-Id: I8973d3ebdb083ed28b8516b8dc26f547f9ab0d52
2017-09-16 00:40:30 +00:00
Tony Wickham 22cb37745c Ignore clicks on notifications that don't have intents.
Bug: 64479852
Change-Id: I3bfff96a12169d0d191a36a8c7e90d4810e9f176
2017-09-15 17:38:48 -07:00
Hyunyoung Song 2dd64c0710 Merge changes from topic "am-ef87c1d2-519f-467f-b097-802ff59b63b3" into ub-launcher3-master
* changes:
  [automerger] Remove haptic on touch down Bug: 65463659 am: d315ff2bc2
  Remove haptic on touch down Bug: 65463659
2017-09-14 17:51:48 +00:00
Hyunyoung Song 465435d16d Merge "Remove haptic on touch down Bug: 65463659" into ub-launcher3-dorval-polish2 2017-09-14 17:51:48 +00:00
TreeHugger Robot 83f7683509 Merge "Fixing custom widgets support:" into ub-launcher3-master 2017-09-14 00:00:48 +00:00
Sunny Goyal 952e63d006 Fixing custom widgets support:
> Moving the definitions to xml so that it is easier to override in derivative projects
> Fixing verious bind and save logic for custom widgets
> Adding feature flag to easily disable custom widgets

Change-Id: I0e278bc7dd415713029364060ef10842da990be9
2017-09-13 14:04:35 -07:00
Sunny Goyal ad7ff44009 Unifying various icon loading methods
Change-Id: I5a8969b6aad6513d769b5bb38bf95a701fe346d8
2017-09-13 11:56:55 -07:00
Hyunyoung Song 3705664cf0 [automerger] Remove haptic on touch down Bug: 65463659 am: d315ff2bc2
Change-Id: Ib476e68fe09e94e4a6299434c876b8bd4834c248
2017-09-12 22:55:15 +00:00
Hyunyoung Song d315ff2bc2 Remove haptic on touch down
Bug: 65463659

Change-Id: I111d18a3d1dcd7877ad4aa5baaeca2e6810be332
2017-09-12 15:54:50 -07:00
TreeHugger Robot 673f917d57 Merge "WallpaperManagerCompat should target correct platform Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683" into ub-launcher3-dorval-polish2 2017-09-11 21:40:47 +00:00
TreeHugger Robot b22a49a677 Merge changes from topic "launcher_at_least_oreo" into ub-launcher3-master
* changes:
  [automerger] WallpaperManagerCompat should target correct platform Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683 am: e24cb63b81
  WallpaperManagerCompat should target correct platform Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683
2017-09-11 21:40:47 +00:00
Sunny Goyal e76297e4cc [automerger] Fixing promise icons not getting restored after the app is installed am: a41ebf0cd2
Change-Id: I36a2e68f4514a10e73a6f52809c59cbd5a30f34c
2017-09-11 20:07:51 +00:00
Sunny Goyal a41ebf0cd2 Fixing promise icons not getting restored after the app is installed
Bug: 65387781
Change-Id: I8f6ca6695ad074a707b574af9499586fdd90d5c1
2017-09-11 13:07:41 -07:00
Hyunyoung Song 8c1e15f3a5 [automerger] WallpaperManagerCompat should target correct platform Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683 am: e24cb63b81
Change-Id: I85935372c20d6b473b692119730212811e01657d
2017-09-11 19:17:38 +00:00
Hyunyoung Song e24cb63b81 WallpaperManagerCompat should target correct platform
Also replace Utilities.isAtLeastO() to static final constant.
Bug: 65544683

Change-Id: I39fbea66939d72c31702748716c4e65b4f9bee6a
2017-09-11 12:17:09 -07:00