Commit Graph

78507 Commits

Author SHA1 Message Date
Sunny Goyal 9c17741387 Merge "Fixing the loader to bind the first screen as well as the hotseat together" into ub-launcher3-calgary 2016-04-01 22:43:28 +00:00
Tony Wickham 827cef203f Added ColorExtractionService and ExtractedColors.
- Launcher has an instance of ExtractedColors, which is loaded from
  LauncherProvider in onCreate() and whenever the wallpaper changes.
  - When the wallpaper changes, the ColorExtractionService is started
    in the :wallpaper-chooser process.
  - ColorExtractionService builds an ExtractedColors instance and saves
    it as a String in LauncherProvider.
  - When the results are saved, Launcher gets a callback through
    LauncherProviderChangeListener and reloads the ExtractedColors.
- Whenever Launcher loads Extractecolors, it also re-colors items
  (currently a no-op).

Change-Id: I319e2cfe0a86abcbc6bb39ef6b9fbbcad54ad743
2016-04-01 15:40:57 -07:00
Adam Cohen 54097aaab7 Merge "Fix a couple polish bugs with new folder previews" into ub-launcher3-calgary
am: cd2717f

* commit 'cd2717fb013871588e96f926251dba5cfad25e3a':
  Fix a couple polish bugs with new folder previews

Change-Id: I46c7aece0b51e2dd710c3fdc08745612c2c674d0
2016-04-01 21:57:45 +00:00
Adam Cohen cd2717fb01 Merge "Fix a couple polish bugs with new folder previews" into ub-launcher3-calgary 2016-04-01 21:51:17 +00:00
Adam Cohen f172b747c2 Fix a couple polish bugs with new folder previews
-> Don't reuse the same background object for the folder create preview
   since this can cause interruptions in the animations for previous
   creation previews.
-> When drawing the background to preview creation, don't draw the stroke
   above the icon since the icon is not yet contained by the folder.

Change-Id: Ib666dc2453df465b342c02f3bd109b553a769dcc
2016-04-01 11:50:31 -07:00
Tony Wickham fa14e92896 Fix spring-loaded highlight on JB.
am: 1c1c088

* commit '1c1c08899402a78c5f8baed9a8bd3f999c4249d7':
  Fix spring-loaded highlight on JB.

Change-Id: Ia029dba5070f26ff7ca42c26ff7d166185d87426
2016-03-31 22:31:12 +00:00
Tony Wickham 1c1c088994 Fix spring-loaded highlight on JB.
It was setting the panel to black when highlighting a CellLayout,
instead of just adding a white border.

Bug: 27135377
Change-Id: I879b12613b0cbfdda2a980065c66ea3ceb960f33
2016-03-31 15:09:15 -07:00
Sunny Goyal 93f878c168 Fixing the loader to bind the first screen as well as the hotseat together
When the loader ran for the first time (or when called due to force-reload),
it was binding with page = -1 (invalid pageId is -1001). This was causing loader
to assume the workspace to be on a valid screen, and causing the loader to
only bind the hotseat first.

Bug: 27705838
Change-Id: Ia8eb2543d8cee1268256b2d6bccf33828937c54a
2016-03-30 18:24:07 -07:00
Sunny Goyal 144154d435 No need to differentiate package event into app or updated based on
a package is being updated or not

Package update handling is a super set of package add handling  which
also updates the all-apps and package disabled state.
This also prevents addtion of a home screen icon when a managed profile
app on SD card become available.

Bug: 27877926
Change-Id: I9264e422fd30b94ce6ebb2e5adea820b3cda3063
2016-03-30 16:51:12 -07:00
Sunny Goyal 3b6f38baa9 Fixing black search bar background in search bar
am: 7efe651

* commit '7efe651226f999ca32506fd2756ae18935320182':
  Fixing black search bar background in search bar

Change-Id: I725f6f5b72babc70edc19d27c45f4b4df681e87e
2016-03-30 16:39:40 +00:00
Sunny Goyal 7efe651226 Fixing black search bar background in search bar
Bug: 27919354
Change-Id: I3f43d8f39640c2db4b192ea316aebf11189982e3
2016-03-30 09:19:45 -07:00
Adam Cohen e76df51497 Yet another RecyclerView child that needs match_parent
am: bd238c9

* commit 'bd238c9e1bd742175518f176077100b812346e85':
  Yet another RecyclerView child that needs match_parent

Change-Id: I3095343d6f42e1948a7544444ea6f6f05de0ebf6
2016-03-29 22:21:45 +00:00
Adam Cohen bd238c9e1b Yet another RecyclerView child that needs match_parent
issue 27705077

Change-Id: I16bdefe37351c26897a57d314a58718cb837543d
2016-03-29 15:07:44 -07:00
Tony Wickham 086dc48b68 Add distance threshold for dragged items before accepted by targets.
am: 855b1b5

* commit '855b1b5fff5f6f03a641b3b6973780a24fd9641e':
  Add distance threshold for dragged items before accepted by targets.

Change-Id: I99830fd378138599c8e8091ac21d0780e04de424
2016-03-29 21:11:50 +00:00
Tony Wickham 855b1b5fff Add distance threshold for dragged items before accepted by targets.
With the new spring-loaded workspace, items are often very close to
button drop targets (e.g. App Info) at the start of a drag. This
threshold makes it less likely to accidentally drop on a target.

Bug: 24099531
Change-Id: I4912ceeb0b63958816177c7bde073e825176d987
2016-03-29 12:41:14 -07:00
Tony Wickham 9ab0a2a99c Merge "Invalidate scrim throughout animation from overlay to workspace." into ub-launcher3-calgary
am: 1f5d3cc

* commit '1f5d3ccc253ab0e4b2abb911a83e7f4d33b6869f':
  Invalidate scrim throughout animation from overlay to workspace.
2016-03-29 00:10:18 +00:00
Tony Wickham 1f5d3ccc25 Merge "Invalidate scrim throughout animation from overlay to workspace." into ub-launcher3-calgary 2016-03-29 00:02:45 +00:00
Adam Cohen 230affa4f7 Remove default app suggestions from LauncherExtension
am: 11b644d

* commit '11b644d6e1661e5365f47772b1e6741719f73506':
  Remove default app suggestions from LauncherExtension
2016-03-28 23:57:49 +00:00
Adam Cohen 11b644d6e1 Remove default app suggestions from LauncherExtension
Change-Id: I7c3a1465aaa54ad3b988975810f29ce89e650ec1
2016-03-28 16:43:33 -07:00
Tony Wickham 3f6c0ee7f5 Invalidate scrim throughout animation from overlay to workspace.
Bug: 27135377
Change-Id: I19e947ac271063beaa6c5d11906631d0afcbb781
2016-03-28 16:43:20 -07:00
Adam Cohen a29bb82d0c Fix alignment issue with suggested apps in all apps
am: 1ad3ef3

* commit '1ad3ef3e81688a92dcfe2b2d39631af6d50baf5c':
  Fix alignment issue with suggested apps in all apps
2016-03-28 23:14:29 +00:00
Dmitry Kalita a50985a2e9 Merge "Fix restoring of layer type" into ub-launcher3-calgary
am: a0088a5

* commit 'a0088a51063f422ec31d1f095c3fcccdd0f2c15a':
  Fix restoring of layer type
2016-03-28 23:14:29 +00:00
Adam Cohen 1ad3ef3e81 Fix alignment issue with suggested apps in all apps
-> New RecyclerView handles wrap_content differently
-> Add mock set of suggested apps to the LauncherExtension

issue: 27581978
Change-Id: Id080e212e0425515fa66e821d116b95284bb3526
2016-03-28 15:51:25 -07:00
Sunny Goyal a0088a5106 Merge "Fix restoring of layer type" into ub-launcher3-calgary 2016-03-28 22:50:06 +00:00
Dmitry Kalita 814ed9ab77 Fix restoring of layer type
Change-Id: I1233b846247b270644325c0ad0229a23bfb29040
Signed-off-by: Dmitry Kalita <rusmonster@gmail.com>
2016-03-28 15:48:36 -07:00
Annie Chin b5652fd7eb Merge "Introduce IconProvider." into ub-launcher3-calgary
am: d2877b9

* commit 'd2877b9bdbfd558be7e8e396ef61ffda5534836b':
  Introduce IconProvider.
2016-03-28 21:40:32 +00:00
Annie Chin d2877b9bdb Merge "Introduce IconProvider." into ub-launcher3-calgary 2016-03-28 21:26:46 +00:00
Annie Chin 17f85951a5 Introduce IconProvider.
Bug: 27506625

-Move managing of SystemState to IconProvider

Change-Id: I3417f0b7d0664c2255c7cc2a88f6c65822b5fb98
2016-03-28 14:07:22 -07:00
Sunny Goyal 650f70c851 Merge "Defining separate layouts for horizontal and vertical drop target bars instead of chaning the layouts in DeviceProfile" into ub-launcher3-calgary
am: e4eaa0e

* commit 'e4eaa0e98320978f12126d5b492141df2f692a90':
  Defining separate layouts for horizontal and vertical drop target bars instead of chaning the layouts in DeviceProfile
2016-03-28 19:42:42 +00:00
Sunny Goyal e4eaa0e983 Merge "Defining separate layouts for horizontal and vertical drop target bars instead of chaning the layouts in DeviceProfile" into ub-launcher3-calgary 2016-03-28 19:30:35 +00:00
Tony Wickham 5e72ba3b7d Merge "Added copywrite comments to pinch-related classes." into ub-launcher3-calgary
am: 676e29c

* commit '676e29ce5d4bb2a38aca704db2855f2d73e09cc5':
  Added copywrite comments to pinch-related classes.
2016-03-25 15:51:32 +00:00
Sunny Goyal d5fe2f520f Preventing unnecessary object creations
am: ed268c2

* commit 'ed268c2c89c94098942ba04fd4cb90310743614a':
  Preventing unnecessary object creations
2016-03-25 15:51:32 +00:00
Tony Wickham 676e29ce5d Merge "Added copywrite comments to pinch-related classes." into ub-launcher3-calgary 2016-03-25 15:46:20 +00:00
Sunny Goyal f37a21412a Defining separate layouts for horizontal and vertical drop target bars
instead of chaning the layouts in DeviceProfile

Bug: 27721989
Change-Id: I9a22c21e643f4fd0058c9be5e9d705aaf7649204
2016-03-24 17:29:23 -07:00
Sunny Goyal ed268c2c89 Preventing unnecessary object creations
> Only creating the animator when required
> Canceling a previously running animation when starting a new one
> Directly setting LinearInterpolator instead of using null

Change-Id: I4f5f25f26dfed9b5c78665af4e74dd565b4cd805
2016-03-24 15:31:13 -07:00
Sunny Goyal 49aed203df Fixing debug log
am: 17763cb

* commit '17763cb1d2060fb95873a8920196720c862f0e14':
  Fixing debug log
2016-03-24 21:02:10 +00:00
Sunny Goyal a1bf4b1638 Merge "Embedding the icon pixel size in the cache DB version. This causes the cache to get reset when the icon size changes, for eg, in case of display scale changes" into ub-launcher3-calgary
am: 225071b

* commit '225071b627bfff5f67c7fd4b0840373e696834e6':
  Embedding the icon pixel size in the cache DB version. This causes the cache to get reset when the icon size changes, for eg, in case of display scale changes
2016-03-24 21:02:09 +00:00
Sunny Goyal 17763cb1d2 Fixing debug log
Change-Id: I85c1f7707a3ea9cae2701aa781b74d758602f643
2016-03-24 13:58:35 -07:00
Sunny Goyal 225071b627 Merge "Embedding the icon pixel size in the cache DB version. This causes the cache to get reset when the icon size changes, for eg, in case of display scale changes" into ub-launcher3-calgary 2016-03-24 20:40:21 +00:00
Sunny Goyal 0c2fc74b45 Merge "Instead of reloading the launcher, updating items dynamically when Quiet mode changes" into ub-launcher3-calgary
am: 07a2f13

* commit '07a2f134717c93802a2b10e551182b7f72660272':
  Instead of reloading the launcher, updating items dynamically when Quiet mode changes
2016-03-24 19:25:32 +00:00
Sunny Goyal 07a2f13471 Merge "Instead of reloading the launcher, updating items dynamically when Quiet mode changes" into ub-launcher3-calgary 2016-03-24 19:20:14 +00:00
Sunny Goyal da891c1a22 Instead of reloading the launcher, updating items dynamically when
Quiet mode changes

Bug: 27632028,27763316
Change-Id: I55f018e855448df0abcbf4fd0fcb39344594980c
2016-03-24 12:19:29 -07:00
Sunny Goyal ad3b2979a2 Setting stable layout flags on the launcher, so that the instets do not change for launcher when going in/out of another app
am: 784f9c3

* commit '784f9c39962721511f19bd3ef929abd7e91fa411':
  Setting stable layout flags on the launcher, so that the instets do not change for launcher when going in/out of another app
2016-03-24 00:12:17 +00:00
Sunny Goyal 784f9c3996 Setting stable layout flags on the launcher, so that the instets do not
change for launcher when going in/out of another app

Bug: 27600678
Change-Id: Ic873faba99c539025769d911bc7b0a4fed629cd7
2016-03-23 16:56:54 -07:00
Sunny Goyal 856c4b4780 Merge "Fixing wrong preference file name in LauncherFiles" into ub-launcher3-calgary
am: abb584c

* commit 'abb584cee164cfc1863af13e8c896cf436014616':
  Fixing wrong preference file name in LauncherFiles
2016-03-23 23:21:39 +00:00
Sunny Goyal abb584cee1 Merge "Fixing wrong preference file name in LauncherFiles" into ub-launcher3-calgary 2016-03-23 23:17:23 +00:00
Dan Willemsen f9afd3b6cb Merge "Replace custom rules with BUILD_PREBUILT"
am: 5892520

* commit '58925207ee0e8fc4a4ebd37743678362188908c1':
  Replace custom rules with BUILD_PREBUILT
2016-03-23 20:48:34 +00:00
Dan Willemsen 58925207ee Merge "Replace custom rules with BUILD_PREBUILT" 2016-03-23 19:12:36 +00:00
Tony Wickham ed5ebae694 Add FeatureFlags.LAUNCHER3_DISABLE_PINCH_TO_OVERVIEW
am: 9c43182

* commit '9c43182ff1d095b1bbaacedefe6e0f4c2deb17e3':
  Add FeatureFlags.LAUNCHER3_DISABLE_PINCH_TO_OVERVIEW
2016-03-23 18:10:36 +00:00
Sunny Goyal 8a6edce064 Fixing wrong preference file name in LauncherFiles
Bug: 27778623
Change-Id: I28aa6698d3caa1fc11b2e8df0733143865f9b408
2016-03-23 10:47:15 -07:00