Commit Graph

16456 Commits

Author SHA1 Message Date
Tony 2917a8bf2b Defer some work until after workspace fade-in
Defer:
- Setting all apps
- Setting widgets

Also set the launcher-loader thread to THREAD_PRIORITY_BACKGROUND
for the duration of the animation.

Bug: 37965432
Change-Id: I8364940805b84aecb8353a473ab4d575c27bfec4
2017-08-04 11:52:42 -07:00
TreeHugger Robot 56ad97cf2d Merge "Switch the status bar color earlier in the all apps transition" into ub-launcher3-dorval-polish 2017-08-04 17:30:06 +00:00
Adam Cohen aa392fc1f6 [automerger] Switch the status bar color earlier in the all apps transition am: 3051dbabe7 am: 3fc21715b3
Change-Id: I195ecbf364e5c9ed536f95f0702a12fce8922472
2017-08-04 16:29:28 +00:00
Adam Cohen 3fc21715b3 [automerger] Switch the status bar color earlier in the all apps transition am: 3051dbabe7
Change-Id: I12f952a555287173bc7ad5e3acca3aaad2b6a1df
2017-08-04 16:29:25 +00:00
Adam Cohen 3051dbabe7 Switch the status bar color earlier in the all apps transition
-> When LAUNCHER3_GRADIENT_ALL_APPS is true, switch the status / nav bar
   to be dark when the transition is 75% of the way through, since at this point
   the gradient is already substantially under the status bar.

issue 64385775

Change-Id: Ie27b8f2afa404c0b3081a4f17daa92ef4e0472bc
2017-08-04 09:29:14 -07:00
TreeHugger Robot 402fb03160 Merge "Fix bug where user gets stuck in overscroll." into ub-launcher3-dorval-polish 2017-08-04 16:10:59 +00:00
TreeHugger Robot 7f167243c2 Merge changes from topic 'am-4864e8c3-e581-4e7f-bc1f-7276c1bf7352' into ub-launcher3-master
* changes:
  [automerger] Fix bug where user gets stuck in overscroll. am: 27ad267a81 am: 572da280d3
  [automerger] Fix bug where user gets stuck in overscroll. am: 27ad267a81
  Fix bug where user gets stuck in overscroll.
2017-08-04 16:10:59 +00:00
TreeHugger Robot 1af550fa9d Merge changes from topic 'am-4864e8c3-e581-4e7f-bc1f-7276c1bf7352' into ub-launcher3-dorval-polish2
* changes:
  [automerger] Fix bug where user gets stuck in overscroll. am: 27ad267a81
  Fix bug where user gets stuck in overscroll.
2017-08-04 16:10:59 +00:00
Tony Wickham 8355dc054c [automerger] Unbind notification listener when badging is disabled am: d48710c283
Change-Id: Icb4da18efc0e0c3ac009e90a314c9ff27189ba11
2017-08-04 01:06:24 +00:00
Tony d48710c283 Unbind notification listener when badging is disabled
- Added SettingsObserver as wrapper around ContentObserver
  to observe Secure or System setting changes.
- NotificationListener and LauncherAppState observe changes
  to the notification dots setting and unbind and rebind
  the NotificationListener service, respectively.

Bug: 36815147
Change-Id: I2cc04ac816a8974969ad0ec759c5402e181fde24
2017-08-03 18:06:14 -07:00
Tony Wickham 30284965d0 [automerger] Merge commit 'refs/changes/84/2659484/1' of sso://googleplex-android/platform/packages/apps/Launcher3 into am-860fd7dd-f3a3-4500-8fc2-78d473322b94 am: 3b7c865e04
Change-Id: I2de03214f2208d2af4c61b453e454a86aacc0159
2017-08-04 00:07:27 +00:00
Tony 3b7c865e04 Merge commit 'refs/changes/84/2659484/1' of sso://googleplex-android/platform/packages/apps/Launcher3 into am-860fd7dd-f3a3-4500-8fc2-78d473322b94
Change-Id: I0b39a20cee47d4aba4a033196db3df78b2357b7b
2017-08-03 17:06:19 -07:00
Tony Wickham 2bc5c995f6 Add new GradientView just for WidgetsBottomSheet
Reusing the one behind all apps caused problems when
opening widgets sheets from all apps.

Bug: 64344341
Change-Id: Ia964d8456645c78614f94693f9538dbac4f566a0
2017-08-03 15:42:03 -07:00
Jonathan Miranda 1adb4cbda3 [automerger] Fix bug where user gets stuck in overscroll. am: 27ad267a81 am: 572da280d3
Change-Id: I8afccc13e384a2c1fde39b291e1b8d84c980d36e
2017-08-03 22:09:09 +00:00
Jonathan Miranda 572da280d3 [automerger] Fix bug where user gets stuck in overscroll. am: 27ad267a81
Change-Id: I5437e02a5c16eefd05c3414c98f77b96bfb0b2ca
2017-08-03 22:09:05 +00:00
Jon Miranda 27ad267a81 Fix bug where user gets stuck in overscroll.
By not intercepting touch when in overscroll, the user
can immediately exit by swiping the opposite direction.

Bug: 64094565
Change-Id: I0b4e3e7a38d90d4e6a336985d939d177a8f04c9b
2017-08-03 15:08:35 -07:00
Jonathan Miranda 3d52ee4da1 [automerger] Optimizations to reduce all apps jank. am: 7f522a25c3 am: 00abdaca61
Change-Id: I3a79d31b61488e51d149a1585ad2b5f8010e878b
2017-08-02 19:42:01 +00:00
Jonathan Miranda 00abdaca61 [automerger] Optimizations to reduce all apps jank. am: 7f522a25c3
Change-Id: Ia2f5fd2f8be050b32fa6b25fef9f3f54b1501c2b
2017-08-02 19:41:58 +00:00
Jon Miranda 7f522a25c3 Optimizations to reduce all apps jank.
* Since adding springs to the apps in All Apps, it is no longer
  efficient to build a hardware layer for it.
* Pre-uploads bitmaps to RenderThread.
* Only add overview animations if we are transitioning to/from it.

Bug: 63711551
Change-Id: I948267598e95ec59dc156acb9abe6b5b789110c0
2017-08-02 12:41:33 -07:00
TreeHugger Robot 36802d5f0b Merge changes from topic 'am-916774c2-9e43-4da0-a288-183ea416defb' into ub-launcher3-master
* changes:
  [automerger] Updating fade-effect parameters: > Shifting the effect at the edge in the presence of padding > Removing fade effect at the bottom > Fixing wrong call for translating children am: 5d80c28161
  Updating fade-effect parameters: > Shifting the effect at the edge in the presence of padding > Removing fade effect at the bottom > Fixing wrong call for translating children
2017-08-02 17:46:30 +00:00
TreeHugger Robot 95de553bcb Merge "Updating fade-effect parameters: > Shifting the effect at the edge in the presence of padding > Removing fade effect at the bottom > Fixing wrong call for translating children" into ub-launcher3-dorval-polish2 2017-08-02 17:46:29 +00:00
TreeHugger Robot 39c6de4374 Merge "Landscape launcher grid/all apps to spec." into ub-launcher3-dorval-polish 2017-08-02 00:12:37 +00:00
Jonathan Miranda 896f78bbc0 [automerger] Landscape launcher grid/all apps to spec. am: 18751b649d am: 5bd1fd2289
Change-Id: Id310e46ebd0aac54e555237959b54702d4b7ba46
2017-08-01 23:56:55 +00:00
Jonathan Miranda 5bd1fd2289 [automerger] Landscape launcher grid/all apps to spec. am: 18751b649d
Change-Id: I5a859814fe44d1f91ccb21553bc91df0c6f287a1
2017-08-01 23:56:52 +00:00
Jon Miranda 18751b649d Landscape launcher grid/all apps to spec.
* Moves FastScroller to the right.

Bug: 64160529
Change-Id: Ie0dfc0a2f0f2d6f6366e4f299769148d76017782
2017-08-01 16:56:38 -07:00
Mario Bertschler 5365694064 [automerger] disabling feature flag LAUNCHER3_UPDATE_SOFT_INPUT_MODE am: 9749b3a93d
Change-Id: I837297ac8d1d7ae5a038b30cce005db4a8a0fd51
2017-08-01 22:24:07 +00:00
Mario Bertschler 9749b3a93d disabling feature flag LAUNCHER3_UPDATE_SOFT_INPUT_MODE
Change-Id: I10d0a19487331f8e6c19c2cce659f670849caab8
2017-08-01 15:19:59 -07:00
TreeHugger Robot d393eef411 Merge changes from topic 'am-e982b207-2be4-4fdc-8ea8-5807d8b1a2ca' into ub-launcher3-master
* changes:
  [automerger] Moving GradientView background alpha to resources am: 6d1e9a1012
  Moving GradientView background alpha to resources
2017-08-01 20:42:12 +00:00
TreeHugger Robot 1ff6c41613 Merge "Moving GradientView background alpha to resources" into ub-launcher3-dorval-polish2 2017-08-01 20:42:12 +00:00
Sunny Goyal 88c32f5a17 [automerger] Making the whole preference entry a single tap target when notification access is not available am: b65e13ca83 am: 0c793abf56
Change-Id: I158cb003f265b5dd9485cda25b5ba9ac46a8f75d
2017-08-01 18:05:33 +00:00
Sunny Goyal 0c793abf56 [automerger] Making the whole preference entry a single tap target when notification access is not available am: b65e13ca83
Change-Id: I4a2aab526002c59fcbc479121451988ae0872c23
2017-08-01 18:05:29 +00:00
Sunny Goyal b65e13ca83 Making the whole preference entry a single tap target when notification access
is not available

Bug: 64232287
Change-Id: I93dadfb88ee5d008dee7582c5f37ea3d354330cd
2017-08-01 11:05:08 -07:00
Sunny Goyal 7fde934987 Merge changes from topic 'am-22b70540-3353-434c-818d-bafe573b7f3e' into ub-launcher3-master
* changes:
  [automerger] Fixing various tests am: 1d7f45d8f8
  Fixing various tests
2017-08-01 08:46:26 +00:00
Sunny Goyal cefbb15656 Merge "Fixing various tests" into ub-launcher3-dorval-polish2 2017-08-01 08:46:26 +00:00
TreeHugger Robot ec99420fe7 Merge "More launcher grid updates." into ub-launcher3-dorval-polish 2017-07-31 18:44:46 +00:00
TreeHugger Robot cf0b2ba853 Merge changes from topic 'am-a22b6313-cfa4-4acb-82af-8534aaefc2de' into ub-launcher3-master
* changes:
  [automerger] More launcher grid updates. am: 3f9bab2fe4 am: 0aa02ecc4b
  [automerger] More launcher grid updates. am: 3f9bab2fe4
  More launcher grid updates.
2017-07-31 18:44:46 +00:00
TreeHugger Robot 7c8d8a629f Merge changes from topic 'am-a22b6313-cfa4-4acb-82af-8534aaefc2de' into ub-launcher3-dorval-polish2
* changes:
  [automerger] More launcher grid updates. am: 3f9bab2fe4
  More launcher grid updates.
2017-07-31 18:44:46 +00:00
Sunny Goyal bd1b511260 [automerger] Fixing various tests am: 1d7f45d8f8
Change-Id: I3af45c4fa81f61b4132c2c089ffadf0e514a6628
2017-07-31 18:04:24 +00:00
Sunny Goyal 1d7f45d8f8 Fixing various tests
> Migrating UI tests to AndroidJUnit4 for better support
> Removing obsolete RotationPreference test
> Fixing broken FileLogTest and AndroidJUnit4
> Removing InvariantDeviceProfileTest as it does not work well with
  resource overlays

Change-Id: I0abb1df6765d76d86c1c6c84e8ac35eb9a6bcdaa
2017-07-31 11:03:54 -07:00
TreeHugger Robot 9f5f297331 Merge "Sending onCreate to the callbacks after our call is complete" into ub-launcher3-dorval-polish 2017-07-31 17:18:38 +00:00
Sunny Goyal 0f808ab837 [automerger] Sending onCreate to the callbacks after our call is complete am: 14b3240eca am: 786a25e9ec
Change-Id: I8643badb64a7501ddd641222e2f1cafac7ef177b
2017-07-31 17:04:51 +00:00
Sunny Goyal 786a25e9ec [automerger] Sending onCreate to the callbacks after our call is complete am: 14b3240eca
Change-Id: If854ef0686bf528a41778f8ec0ab3779f2122e54
2017-07-31 17:04:46 +00:00
Sunny Goyal 14b3240eca Sending onCreate to the callbacks after our call is complete
Bug: Bug: 63381480
Change-Id: Ib5fcd9ef500a91fef93c9e5af657b23723748ccc
2017-07-31 10:04:06 -07:00
TreeHugger Robot 0e657ed260 Merge "Optimize updating All Apps Predictions." into ub-launcher3-dorval-polish 2017-07-30 18:19:19 +00:00
Jonathan Miranda 2ce323f239 [automerger] Optimize updating All Apps Predictions. am: 7653a60c74 am: f880ecca32
Change-Id: Ib7f9573a04faab1748a66dd14ff9ac3609977a7a
2017-07-30 18:05:46 +00:00
Jonathan Miranda f880ecca32 [automerger] Optimize updating All Apps Predictions. am: 7653a60c74
Change-Id: Id7ebeee3d4cc605849ac95623ffe6321bc691b7a
2017-07-30 18:05:43 +00:00
Jon Miranda 7653a60c74 Optimize updating All Apps Predictions.
* Prefetch existing predictions in onResume.
* Only update predictions if something has been changed.
* Swap predictions in place (if possible) -- this avoids
  having to relayout all of All Apps when just the predictions
  change.

Bug: 64126588
Bug: 63711551
Change-Id: Iffa0d9d7d6f99f606dd68b7df5893d6eba1574f5
2017-07-30 11:04:58 -07:00
Tony Wickham f45b7bd949 Merge "Use deep shortcuts' icons as a fallback when updating" into ub-launcher3-dorval-polish 2017-07-29 03:18:26 +00:00
Tony Wickham 7586431c1e [automerger] Use deep shortcuts' icons as a fallback when updating am: a8ccf09597 am: ffea4cbf0d
Change-Id: Ib74743a7f81325c1eb03e27316c7d5733ff70cc8
2017-07-29 01:16:16 +00:00
Tony Wickham ffea4cbf0d [automerger] Use deep shortcuts' icons as a fallback when updating am: a8ccf09597
Change-Id: I6629a5ca0eed641fc575b67dda39ff63b568f71b
2017-07-29 01:16:13 +00:00