Commit Graph

5399 Commits

Author SHA1 Message Date
Winson Chung
3ddb64efb5 Merge "Bumping icon version to clear db to trigger loading from IconProvider." into ub-launcher3-calgary 2016-06-28 23:36:59 +00:00
Winson
5cb61e4808 Bumping icon version to clear db to trigger loading from IconProvider.
Bug: 29401565
Change-Id: I168dc9b52a972c7858ff8859a6375df314914105
2016-06-28 15:37:30 -07:00
Peter Schiller
8ea6a53654 Fixed inset overscroll
Bug: 29334391
Change-Id: I621f4b78e2c7d80d024ba1f9bcd993ff8a35ed01
2016-06-28 15:13:02 -07:00
Peter Schiller
b43ed13d61 Merge "All Apps header shadow is drawn incorrectly" into ub-launcher3-calgary 2016-06-28 22:08:54 +00:00
Hyunyoung Song
344ca1b827 Merge "Extend all apps pull up activation area to page indicator view b/29752599" into ub-launcher3-calgary 2016-06-28 19:29:51 +00:00
Hyunyoung Song
f7e5e374fe Prevent all apps transition NPE
b/29643291
b/29642263

> Also do not change status bar when landscape mode

Change-Id: I1e44af8e031856a50a7413ad297c437245e8b2aa
2016-06-28 12:27:41 -07:00
Hyunyoung Song
7744169812 Extend all apps pull up activation area to page indicator view
b/29752599

Change-Id: I3ee5efefa98defbc8f386895753946efe79708b4
Background: page indicator's background is where the caret symbol is.
2016-06-27 23:51:36 -07:00
Peter Schiller
cbea086284 All Apps header shadow is drawn incorrectly
Bug: 29777304
Change-Id: I9ead05b28d1d57dd6a157126637296a97e3f7058
2016-06-27 18:59:32 -07:00
Hyunyoung Song
4a582162bc Invert nav bar to light when status bar changes in all apps.
Change-Id: I48acf2f20cd3e265e2f84bfa412d3d233cb76a01
2016-06-27 17:48:17 -07:00
Tony
acd86ff486 Surround shortcut API calls with try-catch.
Bug: 29732661
Change-Id: Iba96eedab67e7715f34139c64f96b1a81ba30ea5
2016-06-27 11:53:58 -07:00
Sunny Goyal
0d21daace2 Merge "Making some shortcut manager calls protected by MR1 version check" into ub-launcher3-calgary 2016-06-23 21:56:25 +00:00
Sunny Goyal
9994b2b171 Making some shortcut manager calls protected by MR1 version check
Change-Id: Ifdfa95a58aa18a825c1838c61055928dbe0ea3be
2016-06-23 14:55:56 -07:00
Sunny Goyal
11cec0209c Merge "Removing unnecessary object creation and double loop during getDescendantCoordRelativeToAncestor" into ub-launcher3-calgary 2016-06-23 21:29:21 +00:00
Hyunyoung Song
aac20dba11 Merge "Add margin to all apps recycler container view b/29509347 > Last row inside recycler view was obstructed by nav bar making it difficult to interact with before." into ub-launcher3-calgary 2016-06-22 21:57:23 +00:00
Sunny Goyal
2e08409732 Build fix
Change-Id: Ieaf5c91b85c56a3e042bffaad0fdaba090a891cf
2016-06-22 14:37:41 -07:00
Sunny Goyal
653bfcc743 Merge "Accessibility fixes and updates" into ub-launcher3-calgary 2016-06-22 21:34:06 +00:00
Sunny Goyal
d0a6ae7f64 Accessibility fixes and updates
> Adding custom actions on the page indicator to go to overview mode
> Disabling custom actions on the first page
> Disabling 'move page left' on the second page

Change-Id: Ib8154f70cb3f93e663a881357c6c46c33253887f
2016-06-22 14:17:34 -07:00
Tony Wickham
ec1b1c542c Merge "Add support for launcher shortcuts." into ub-launcher3-calgary 2016-06-22 20:35:31 +00:00
Sunny Goyal
8e6a800480 Merge "Fixing potantial context leak code path" into ub-launcher3-calgary 2016-06-22 18:58:25 +00:00
Hyunyoung Song
1c72b72b21 Add margin to all apps recycler container view
b/29509347
> Last row inside recycler view was obstructed by nav bar
making it difficult to interact with before.

Change-Id: I90f0f402e14230a1757f208f9b92800f10cdb38c
2016-06-22 10:59:07 -07:00
Sunny Goyal
803896767b Fixing bug in GridSizeMigrationTask, where it was not accounting for
an extra space when there is no all-apps icon

Bug: 29569843
Change-Id: Ib768f0d069aed413bd8f4c2aa86ab1d3d657680e
2016-06-22 09:51:07 -07:00
Hyunyoung Song
4efaed5637 Merge "All apps pull up work b/28917826 b/29469966 b/29542376" into ub-launcher3-calgary 2016-06-21 23:55:54 +00:00
Hyunyoung Song
eac1dac239 All apps pull up work
b/28917826
b/29469966
b/29542376

- Move state transition to when the finger is lifted and not when
the view settles.
- Refactor the vertical pull detector to use bit operation to define
which direction scroll to allow.
- Fixed many issues regarding screen rotation
- Fixes issue where slowly sliding the all apps goes into overview mode
- Fixes issue where quick slide up leads to animation starting from middle

Change-Id: I2384a0fcc5550e17359a044ef506bcc66507da5f
2016-06-21 16:37:13 -07:00
Tony Wickham
bfbf7f9f4a Add support for launcher shortcuts.
- This CL has no UI but provides the necessary backing for one.
- Adds new item type: ITEM_TYPE_DEEP_SHORTCUT, to distinguish from
  ITEM_TYPE_SHORTCUT. We can reconsider these names.
- Adds ShortcutCache, using LruCache for up to 30 dynamic shortcuts
  (pinned shortcuts are always cached in a HashMap).
- DeepShortcutManager queries for shortcuts and other things like
  pin them. In a future CL it will use the cache, but for now it
  simply makes an RPC for all queries.
- LauncherModel maintains counts for pinned shortcuts, pinning and
  unpinning when counts reach 1 or 0, respectively.
- LauncherModel maintains a map of components to lists of shortcut ids,
  which Launcher gets a copy of after it is changed in the background.
  This will allow us to know how many shortcuts an app has immediately,
  and query for details as the UI is animating.

Change-Id: Ic526f374dd10d72a261bae67f07f098fca8d8bca
2016-06-21 15:49:16 -07:00
Sunny Goyal
a649faa1b5 Making LauncherActivityInstallInfo public to prevent access modification
by proguard

Bug: 29539169
Change-Id: I2fbe7672b6456dd60393093bf4a73e7336dbaca6
2016-06-21 15:30:34 -07:00
Hyunyoung Song
314d53fbaf Merge "Fix container horizontal padding" into ub-launcher3-calgary 2016-06-21 18:29:57 +00:00
Hyunyoung Song
0f1ce045e2 Fix container horizontal padding
Change-Id: I41b84db6d71df7f4e47098fa9ed7eda4465f18c3
2016-06-21 11:21:39 -07:00
Sunny Goyal
713afa70e5 Merge "Maintaining separate alpha for x and y translations" into ub-launcher3-calgary 2016-06-21 17:46:56 +00:00
Sunny Goyal
e26d1008eb Adding some tracing sections around launcher startup
Bug: 29007436
Change-Id: I53afd9130a2dc70a2223f1623e862faf44370f26
2016-06-20 15:56:22 -07:00
Sunny Goyal
64976d5a56 Fixing potantial context leak code path
The javadoc in createUserEventDispatcher suggested that it can be used
as a singleton. But it was being constructed as an inner class which
would cause context leak when used as singleton

Change-Id: I706018d4ab26b506ac936fe1a7304d9b530b820c
2016-06-20 14:57:54 -07:00
Hyunyoung Song
91f3b1c0b8 Merge "Fixing a crash on APPS->WORKSPACE transition when animation is automated without dragging. b/29424335" into ub-launcher3-calgary 2016-06-20 21:20:32 +00:00
Hyunyoung Song
a0c5647f52 Fixing a crash on APPS->WORKSPACE transition when animation is automated without dragging.
b/29424335

Change-Id: I2b109423b5a4cfc94fcda75fdea936785373968f
2016-06-20 13:54:42 -07:00
Andrew Sapperstein
61edb5422b Merge "Update Launcher to use theme colors." into ub-launcher3-calgary 2016-06-20 19:38:54 +00:00
Andrew Sapperstein
abef55a1c1 Update Launcher to use theme colors.
Instead of using hard-coded variants of colors, use the theme color
that corresponds (colorAccent, colorPrimary, etc).

Updated:
- "Search for more apps" text
- App info drop target hover color
- PageIndicatorDots
- All apps & widget scroll bar & scroll popup colors
- All apps section text color
- widget picker background color

TODO:
- widget picker header color

BUG: 28625102
Change-Id: I74b543ff71b8caef8cd950c8183ac84c759cb4d5
2016-06-20 11:46:44 -07:00
Sunny Goyal
bfa8fbd782 Maintaining separate alpha for x and y translations
Bug: 29504823
Change-Id: I6150fec43653c8da4c5841ddbd6c5de739f205b8
2016-06-20 10:54:50 -07:00
Hyunyoung Song
97d89e9249 Fixing workspace transition state
Change-Id: I394d587aa84aefa174220380a6dfb25bad133fde
2016-06-20 09:59:28 -07:00
Sunny Goyal
ae50284e0a Moving LauncherAccessibilityDelegate to Launcher to associate it with
activity lifecycle.

Change-Id: Ib815505677fa7ed74bdcfe7141b1d9bea5d7143a
2016-06-17 08:44:51 -07:00
Sunny Goyal
bb011dad4e Adding a flag (enabled by default) to remove the all-apps button.
All apps can still be opened by clicking the caret.

Bug: 29398447
Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
2016-06-17 08:17:22 -07:00
Sunny Goyal
0af8af3a60 Merge "Adding a DB update path to handle the QSB position change" into ub-launcher3-calgary 2016-06-16 19:34:20 +00:00
Hyunyoung Song
a9a8a42217 UI fixes to All apps pull up work
b/28917826
- nav bar change to light when top of the all apps container
passes y mid point of the status bar
- apps search edit box change when top of the all apps passes
the bottom of nav bar
- Restrict pull up to work only if the ACTION_DOWN event started
from the hotseat.
- Landscape: reverted old padding and margin. Only the interaction
is different.
- Tuning of the motion spec
- Animation duration respects fling speed more agressively.
- and many more small bugs...

Change-Id: Icde4093c41eeab8c9c6d9dc8b7d57adc3b171349
2016-06-15 16:45:48 -07:00
Hyunyoung Song
9417686f73 Fix the build.
Change-Id: I7cdfd2b276b53dbeb1d639a967753d0cc9d45d84
2016-06-15 13:25:01 -07:00
Hyunyoung Song
7d2fc8120e Add caret shaped all app pull up handle to page indicator.
b/28917826

> PageIndicator is also added in landscape
> Touch delegate allows the active touch area to be 36dp

Change-Id: If00f45fc88a13cd5a6759d771313439eb58561e3
2016-06-15 12:51:30 -07:00
Sunny Goyal
8cf47a5121 Removing unnecessary object creation and double loop during
getDescendantCoordRelativeToAncestor

Change-Id: I034db2282a8aaf129336a425338c6a80d6a3a073
2016-06-15 10:11:56 -07:00
Sunny Goyal
a9e2f5abb3 Adding a DB update path to handle the QSB position change
> Renamed the id of 1st screen to 0 and making space for the QSB
by running the grid migration task.
> Added a feature flag to easily disable the QSB-in-workspace behavior

Change-Id: Ie3369f0d4433d916e9d6215d414770d4333f3e26
2016-06-15 10:03:12 -07:00
Sunny Goyal
e8b5d20d94 Fixing bug in getDescendantCoordRelativeToParent where it was
calculating the coordinates relative to the root's parent

The bug went unnoticed for so long, as its only used in DragLayer
which is positioned at 0,0 in its parent

Change-Id: I101cda1f1fa919c0faf9b23b1eeb05764bdf1a40
2016-06-14 16:46:03 -07:00
Hyunyoung Song
6041eb248a Merge "All apps container should not intercept touch during animation." into ub-launcher3-calgary 2016-06-13 19:40:35 +00:00
Hyunyoung Song
35ea6591a7 All apps container should not intercept touch during animation.
b/28917826
> When all apps container is settling near either the bottom or top
end, touch event should not be intercepted.

Change-Id: I8aee6cea52e844c4615b92b15f8ef7247236a25b
2016-06-13 12:38:32 -07:00
Sunny Goyal
055792afba Merge "Making the security checks and policy changes only when launching custom shortcuts. This prevents launcher specific intents to unknowingly leak data." into ub-launcher3-calgary 2016-06-10 20:49:16 +00:00
Sunny Goyal
a7ce166b2e Making the security checks and policy changes only when launching custom
shortcuts. This prevents launcher specific intents to unknowingly leak data.

Change-Id: I01343a9cee1f2a9a37a20aaf24e933e2771ecdbc
2016-06-10 13:48:44 -07:00
Hyunyoung Song
f4cbb1428a Fixes to touch handling in all apps pull up work
b/28917826
- Fast scroll bar works even when it's at the top of the recycler view
- Pull down only happens ONLY IF the thumb of the scroll bar is at top
- When container is touched during sliding down animation,
translation should not jump

Change-Id: Ic1d9a4aa77332cc0a7582556f893053003224dd3
2016-06-10 13:26:19 -07:00