Commit Graph

49925 Commits

Author SHA1 Message Date
Sunny Goyal da89fc4d29 Merge \"Fixing potantial context leak code path\" into ub-launcher3-calgary
am: 8e6a800480

Change-Id: I13661a761cc4294e2a3e498532a926502f56b730
2016-06-22 19:01:57 +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
Hyunyoung Song b2c628f8ea Merge \"Fix LauncherInstrumentationTestCase#openAllApps() method. b/29535532\" into ub-launcher3-calgary
am: fce71421bf

Change-Id: I44b429b0e6aa8f5de30970cc3e8a64c619d668fb
2016-06-22 17:07:44 +00:00
Sunny Goyal b9e1608b40 Fixing bug in GridSizeMigrationTask, where it was not accounting for an extra space when there is no all-apps icon
am: 803896767b

Change-Id: I9d4542ebbc675c1f7dfd42fd2341dedd3c81d199
2016-06-22 17:07:44 +00:00
Hyunyoung Song fce71421bf Merge "Fix LauncherInstrumentationTestCase#openAllApps() method. b/29535532" into ub-launcher3-calgary 2016-06-22 17:00:41 +00:00
Hyunyoung Song 8cea8194e0 Fix LauncherInstrumentationTestCase#openAllApps() method.
b/29535532

Change-Id: Iebf20c2fe66ad244b04658b15ade21d579fb2c12
2016-06-22 09:59:40 -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
Tony Wickham 5367326233 Fix the build am: 4707e2b64d am: f304453c99
am: d85854558a

Change-Id: I3b010d1bf51692a5d592694ac264835fcc311a5b
2016-06-22 01:57:31 +00:00
Tony Wickham b405e55fe8 Fix the build am: 4707e2b64d am: 7815035df0
am: 5ecb655ac4

Change-Id: If5c9a33646189fa685a07ab8b682d90cf1939820
2016-06-22 01:57:31 +00:00
Tony Wickham d85854558a Fix the build am: 4707e2b64d
am: f304453c99

Change-Id: I171b96c4a194c6dd7ad8ff729dd5619bef112a95
2016-06-22 01:44:22 +00:00
Tony Wickham 5ecb655ac4 Fix the build am: 4707e2b64d
am: 7815035df0

Change-Id: If3c7dc7dc7c7a3a9f3ebf07f88a74d4a89e8c940
2016-06-22 01:41:48 +00:00
Tony Wickham 7815035df0 Fix the build
am: 4707e2b64d

Change-Id: Ia23abc1ad1e72b967a0214776a4a9c980a2f805d
2016-06-22 01:39:09 +00:00
Tony Wickham f304453c99 Fix the build
am: 4707e2b64d

Change-Id: I802695e31c9e0e5243340337220a72820fcc9f28
2016-06-22 01:39:07 +00:00
Tony Wickham 29ae65fbe3 Merge branch \\\'ub-launcher3-burnaby-nyc\\\' into nyc-dev b/29535844 am: 3c0c2c4b02 am: 027594fc1b
am: 9015be72e4

Change-Id: Ifedf9f47e19538d35780e89b2f0c8487da97c2dd
2016-06-22 01:24:22 +00:00
Tony Wickham 5398cc5b0d Merge branch \\\'ub-launcher3-burnaby-nyc\\\' into nyc-dev b/29535844 am: 3c0c2c4b02 am: 8868238fb2
am: 7cd14d0e55

Change-Id: Ibc4dc53a6993bdd4b6b69b9eb80a5dba12ff6b27
2016-06-22 01:24:21 +00:00
Tony Wickham 4707e2b64d Fix the build
Change-Id: Iaa38202cbb389eed179a3e7b1b6799426ae1cf39
2016-06-21 18:18:37 -07:00
Hyunyoung Song 9015be72e4 Merge branch \\'ub-launcher3-burnaby-nyc\\' into nyc-dev b/29535844 am: 3c0c2c4b02
am: 027594fc1b

Change-Id: Ic10773833d1aac1a94bb5af58c7a6f92c815bfd6
2016-06-22 00:28:00 +00:00
Hyunyoung Song 7cd14d0e55 Merge branch \\'ub-launcher3-burnaby-nyc\\' into nyc-dev b/29535844 am: 3c0c2c4b02
am: 8868238fb2

Change-Id: I6af388d4bf7c0c36ac928ff50b280eb2a75680ff
2016-06-22 00:14:29 +00:00
Tony Wickham 027594fc1b Merge branch \'ub-launcher3-burnaby-nyc\' into nyc-dev b/29535844
am: 3c0c2c4b02

Change-Id: Ib5b15b1b5c4a115c4052eca9ef65638f0c0e1eda
2016-06-22 00:11:57 +00:00
Tony Wickham 8868238fb2 Merge branch \'ub-launcher3-burnaby-nyc\' into nyc-dev b/29535844
am: 3c0c2c4b02

Change-Id: I0a5e6e16d2cecc7151d1a863c8e8e07fb83ea060
2016-06-22 00:11:57 +00:00
Hyunyoung Song b6fb5c88e8 Merge \"All apps pull up work b/28917826 b/29469966 b/29542376\" into ub-launcher3-calgary
am: 4efaed5637

Change-Id: Ifbcd35ab86247afb484f95275fff587fc403a42b
2016-06-22 00:01:27 +00: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 3c0c2c4b02 Merge branch 'ub-launcher3-burnaby-nyc' into nyc-dev
b/29535844

Change-Id: I46d6f461261a4a8ba8bcea58ac82e005fca35109
2016-06-21 16:45:25 -07: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 5d3161d6fb Making LauncherActivityInstallInfo public to prevent access modification by proguard
am: a649faa1b5

Change-Id: Id1711b867b27e9b7d81d7e7127628c0253b07b5f
2016-06-21 22:41:10 +00: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 74e473f7ee Merge \"Fix container horizontal padding\" into ub-launcher3-calgary
am: 314d53fbaf

Change-Id: Ia16127fa4a868de5b51f1ce9d96cb349edfd2162
2016-06-21 18:39:37 +00: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 8c4b2bdc8b Merge \"Maintaining separate alpha for x and y translations\" into ub-launcher3-calgary
am: 713afa70e5

Change-Id: I6b2df60cd994b466b1580a521d3b72326f5403f5
2016-06-21 17:52:25 +00: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 68ab4116e2 Adding some tracing sections around launcher startup
am: e26d1008eb

Change-Id: I71dda8ac5b79e127b0e383ec0dc19bf9a6dca218
2016-06-21 00:42:55 +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 09b18a9b12 Merge \"Fixing a crash on APPS->WORKSPACE transition when animation is automated without dragging. b/29424335\" into ub-launcher3-calgary
am: 91f3b1c0b8

Change-Id: I0ccb23006e7958a2a325233e284a99168e48494c
2016-06-20 21:30:32 +00: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 ab95909d48 Merge \"Update Launcher to use theme colors.\" into ub-launcher3-calgary
am: 61edb5422b

Change-Id: I1d35ff85626f1c7b3bd3644b9b5f5fb582d25e6a
2016-06-20 19:43:40 +00: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 dba6d0772a Fixing workspace transition state
am: 97d89e9249

Change-Id: Ida87165fb60cb488e46057897f55ee19c3fab32d
2016-06-20 17:54:07 +00:00
Hyunyoung Song 97d89e9249 Fixing workspace transition state
Change-Id: I394d587aa84aefa174220380a6dfb25bad133fde
2016-06-20 09:59:28 -07:00
Sunny Goyal 44a54f77fd Moving LauncherAccessibilityDelegate to Launcher to associate it with activity lifecycle.
am: ae50284e0a

Change-Id: I4a37d0436641e6500f9fba5d6b07437a12815334
2016-06-17 17:44:19 +00: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 ad5142828d Adding a flag (enabled by default) to remove the all-apps button.
am: bb011dad4e

Change-Id: I5d95b0c92db6be330256b51b8c90781efaa76413
2016-06-17 15:25:30 +00: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 ccdbc5c881 Merge \"Adding a DB update path to handle the QSB position change\" into ub-launcher3-calgary
am: 0af8af3a60

Change-Id: Id09d7bf2bbe5a123a026ce788c4d277d2d07740a
2016-06-16 19:51:07 +00:00