Commit Graph

17511 Commits

Author SHA1 Message Date
Colin Cross c510d042fb Use tools:node="replace" instead of tools:merge="override"
tools:merge="override" is no longer supported in Manifest Merger 2.

Bug: 36005379
Test: m -j Launcher3Go
Change-Id: I289f74f35876cdf274433ec1a579875217d9b9a8
Merged-In: I289f74f35876cdf274433ec1a579875217d9b9a8
(cherry picked from commit 318a8b626f)
2017-09-18 21:03:59 +00:00
Jon Miranda 387a44670b Ensure no diffs b/w oc-mr1-dev and ub-launcher3-dorval-polish2.
am: fe8a39d8b0

Change-Id: Ie08c5fff60928bf306415848440fd3cf3c42840a
2017-09-05 16:07:16 +00:00
Jon Miranda fe8a39d8b0 Ensure no diffs b/w oc-mr1-dev and ub-launcher3-dorval-polish2.
This should ensure that all future code drops will be able to
merge cleanly.

Bug: 64937210
Test: Manual test
Change-Id: I4f7952d0e979402e120b29dc501ac7fff3de2879
2017-08-29 20:10:22 -04:00
Jon Miranda 90c2336b66 merged ub-launcher3-dorval-polish2, and resolved conflicts
am: dff92fe1aa

Change-Id: Ib27c041ea26efa42a17e13ae7eb4eff64bdd3118
2017-08-28 20:52:41 +00:00
Jon Miranda dff92fe1aa merged ub-launcher3-dorval-polish2, and resolved conflicts
Conflicts:
  res/values-be/strings.xml
  res/values-et/strings.xml
  res/values-ms/strings.xml

Bug: 64937210
Test: flashed img
Change-Id: I28557d652cc5a547f8b94a60a41f381a5af2fa84
2017-08-22 13:52:19 -04:00
Mario Bertschler 78356a542e Adjusting reflection api for color addOnColorsChangedListener that
caused reflection to break. The new api method is available in both
DR and MR1.

Bug: 64908004
Bug: 64839046
Change-Id: I812c320e2c817aea8264de8764e33ad218b591c5
2017-08-21 15:25:55 -07:00
TreeHugger Robot d722645e7f Merge "Simplifying some package matching code by using common itemInfo mathcher" into ub-launcher3-dorval-polish2 2017-08-21 19:28:39 +00:00
TreeHugger Robot b55b6264ae Merge "Remove LAUNCHER3_ALL_APPS_PULL_UP Bug: 63712253 Verified: all apps transition fully functional Verified: NO_ALL_APPS_ICON = false case also works." into ub-launcher3-dorval-polish2 2017-08-21 19:22:56 +00:00
Hyunyoung Song d725f644b7 Remove LAUNCHER3_ALL_APPS_PULL_UP
Bug: 63712253
Verified: all apps transition fully functional
Verified: NO_ALL_APPS_ICON = false case also works.

Change-Id: I779fb7bd4927c5923da3f85590d912dbbbcdef4d
2017-08-21 11:59:14 -07:00
TreeHugger Robot ee804af749 Merge "Fixing bindAllApplications scheduled with null list." into ub-launcher3-dorval-polish2 2017-08-18 19:14:45 +00:00
Sunny Goyal 49fc3f7aa8 Fixing bindAllApplications scheduled with null list.
When deferring bindAllApplications, the same global state was being
used to store the pending state. This global state was being cleared
in one deferred execution after a second execution was scheduled, causing
the second execution to get null/wrong values.

Instead using independent local/anonymous class to maintian states, so that
it does not get cleared by other methods.

Bug: 64789383
Change-Id: I78477a110fe663603b4bdeb7d1fac7c4ce0831a2
2017-08-18 12:07:11 -07:00
TreeHugger Robot 1d2eaa7676 Merge "Fixing wrong intests being sent to DeviceProfile in case of lowRam device Also fixing the navbar to dark theme when a black bar is drawn behind nav bar" into ub-launcher3-dorval-polish2 2017-08-18 18:57:34 +00:00
Sunny Goyal 906c6b2f6c Fixing wrong intests being sent to DeviceProfile in case of lowRam device
Also fixing the navbar to dark theme when a black bar is drawn behind nav bar

Fixing left/right margins not getting updated on lowRam device
when they change from non-zero value to 0

Bug: 64363693
Bug: 62547502
Change-Id: I4952ad2f564b71b39318350445f116a0f601a10f
2017-08-18 05:25:44 -07:00
Sunny Goyal a9a1a210d3 Fixing crashloop due to ag/2750101
Change-Id: Idebf6bfad4e56a52780b848fbb09b3a0134ffdc2
2017-08-18 01:03:48 -07:00
Sunny Goyal 6e13dd3aa8 Simplifying some package matching code by using common itemInfo mathcher
Change-Id: Ib98d528391e19c0de3fe11304330dfa37710548c
2017-08-17 11:15:12 -07:00
Sunny Goyal b23980cc0e Fixing duplicate/inconsistent definitions for model and callbacks
> 2 implementations for filtering workspace items
> 2 implementations for binding widgets
> duplicate logic for add and update appInfo

Change-Id: Id68a49926af398478deca8ac85ab1f22341a9449
2017-08-17 11:05:56 -07:00
Jonathan Miranda eeccd38368 [automerger] Fix bug where all apps items fade in. am: 48a4e91c73
Change-Id: I9ccd034f9d8606d3baae07da3464c659fd405831
2017-08-15 20:50:03 +00:00
Jon Miranda 48a4e91c73 Fix bug where all apps items fade in.
Removes all Add/Change/Move/Remove animations by
clearing the AllAppsRecyclerView ItemAnimator.

Bug: 64675794
Change-Id: I41f975ab6be4bf48c483828ea6f109382a8a9320
(cherry picked from commit 7dfabaa02b)
2017-08-15 20:50:00 +00:00
Sunny Goyal 67b2a21f45 Merge "Simpifying uninstall drop target to check item type instead of class instance" into ub-launcher3-dorval-polish2 2017-08-15 20:45:33 +00:00
Sunny Goyal 1fe0c2ca08 Simpifying uninstall drop target to check item type instead of class instance
Bug: 64719848
Change-Id: I34c13b461e204fbdc2c5b4ed6fa92564ebd5439a
2017-08-15 12:55:16 -07:00
TreeHugger Robot 10fcfb04b0 Merge "Fix bug where all apps items fade in." into ub-launcher3-dorval-polish2 2017-08-15 19:43:27 +00:00
Jon Miranda 7dfabaa02b Fix bug where all apps items fade in.
Removes all Add/Change/Move/Remove animations by
clearing the AllAppsRecyclerView ItemAnimator.

Bug: 64675794
Change-Id: I41f975ab6be4bf48c483828ea6f109382a8a9320
2017-08-15 10:33:54 -07:00
Rajeev Kumar bf17e50156 Get rid of unnecessary int array allocation.
Bug: 64656232
Change-Id: Ifc811c3930b8052d57fa33d35b9d50f11b541c94
Test: Tested manually
2017-08-14 16:12:48 -07:00
Jonathan Miranda 492617f4c4 [automerger] Fix bug where all apps scrollbar jumps. am: bb10fa8fc2
Change-Id: I656c3482de28f7b50c0526cf10eacb6847e19447
2017-08-14 19:42:24 +00:00
Jon Miranda bb10fa8fc2 Fix bug where all apps scrollbar jumps.
The problem is that rowAppIndex is not being set when we swap in the
new predictions. So when we call AllAppsRecyclerView#getCurrentScrollY,
the "item.rowAppIndex == 0" clause returns true for every predicted app,
which results in a larger than expected value.

Bug: 64628968
Change-Id: I37ca660522b5a99666de2ea0b9c0aa8cd3732aca
2017-08-14 12:35:53 -07:00
Bill Yi 2d01eb610c Import translations. DO NOT MERGE
Change-Id: I0c577cf7de02928f02d9fde76ea5b6ec35d18c70
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-11 14:00:59 -07:00
Tony Wickham f2d3696500 Merge "Defer some work until after workspace fade-in" into ub-launcher3-dorval-polish2 2017-08-10 18:49:15 +00:00
Jon Miranda 9593f9ed0c Fix bug where workspace is not aligned with hotseat in landscape.
The padding was added to the hotseat, but not to the workspace screens.
Only affects landscape where bottomPadding != 0.

Bug: 63996463
Change-Id: I8be0e36128963a1856d2effa76fdb2a6cfd966a8
2017-08-09 14:57:30 -07:00
TreeHugger Robot 16d90e3be5 Merge "Update hotseat cell height calculation." into ub-launcher3-dorval-polish2 2017-08-09 21:05:23 +00:00
Jon Miranda 5044c35b07 Update hotseat cell height calculation.
The hotseat never has text, so we remove the icon drawable padding
from the height calculation.

This allows the items in the hotseat to be centered vertically
properly.

Bug: 63996463
Change-Id: Ie0c5706ae6edeafae321ca024c066439d40ca237
2017-08-09 11:37:59 -07:00
Hyunyoung Song 238ec0b2e2 Merge "Disable adaptive icon drawable parallax effect during drag and drop Bug: 34828147" into ub-launcher3-dorval-polish2 2017-08-09 15:14:01 +00:00
TreeHugger Robot 4da15639c3 Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval-polish2 2017-08-09 13:55:18 +00:00
The Android Open Source Project f4085ff7cc Import translations. DO NOT MERGE
Change-Id: Ia1a6c690e285583fe62a9743d8e283c26d020ba2
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-09 04:24:16 -07:00
TreeHugger Robot 8230198af0 Merge "Making some methods accessible" into ub-launcher3-dorval-polish2 2017-08-09 09:17:00 +00:00
Sunny Goyal 5be7579598 Fixing badge bounds incorrectly set when dragging icon
Bug: 64427027
Change-Id: If57bdcab703b2cc30e8ca0c0fba0dd599792bd00
2017-08-07 10:42:22 -07:00
Sunny Goyal 0b754e564b Making some methods accessible
Bug: 63996463
Change-Id: I3cd2e21b8aa6744fc8003a131178ce1671e024dd
2017-08-07 07:43:25 -07:00
Hyunyoung Song 76bf7f3835 Disable adaptive icon drawable parallax effect during drag and drop
Bug: 34828147

Change-Id: I5abb0997ce42db1ea73ebe469686585282f43594
2017-08-07 01:38:03 -07:00
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 f2b83d0e84 Merge "Create new device profile for Android Go." into ub-launcher3-dorval-polish2 2017-08-04 17:57:00 +00: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 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 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 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 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 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
Jon Miranda 902e235348 Create new device profile for Android Go.
Bug: 64109388
Change-Id: I8660f4e206eacd4eaccaebe794d255063eeb7e37
2017-08-03 13:49:22 -07:00