Commit Graph

10334 Commits

Author SHA1 Message Date
Tony Wickham 9c43182ff1 Add FeatureFlags.LAUNCHER3_DISABLE_PINCH_TO_OVERVIEW
Bug: 27796974
Change-Id: Icda33fb62783cc3f7b510d627d1eeb9cf29bd2d3
2016-03-23 10:42:02 -07:00
Sunny Goyal 2ae7736d09 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

Bug: 27701193
Change-Id: Ib11144757a93cb50fb233d855902c0b2c15afbed
2016-03-22 14:34:16 -07:00
Sunny Goyal d5bd67dfa9 Adding support for result callback when starting uninstall-application activity
Change-Id: Ieaca4fbd0ae0156f24c8863ccbef61d4d6d30ba1
2016-03-22 13:57:58 -07:00
Adam Cohen d3cc05a3a8 Account for disparity btw folder preview size and drawable size
-> When there is disparity between the cached icon size and the available space
   in the preview, the folder preview could appear not as intended (either
   overly crammed, or overly spacious)

issue 27701193

Change-Id: I9f97012ba569d1419b1e3f661cd26761b2a36285
2016-03-21 15:12:15 -07:00
Adam Cohen aa2542a461 Invalidate folder drawing paramaters when top padding changes
-> This fixes issues when moving folders between the workspace
   and hotseat (which have different top paddings)

Change-Id: Iac5a4575a403ce8eadd1d3195f02ab10fe5dac23
2016-03-21 14:08:54 -07:00
Sunny Goyal 470f900fce Removing some unused imports
Change-Id: I83962e467e3357db536a3e5a4a5c3071cc1268ab
2016-03-21 13:02:29 -07:00
Tony Wickham f7106648db Merge "Center folders slightly less aggressively than before" into ub-launcher3-calgary 2016-03-21 18:57:45 +00:00
Sunny Goyal ef0ac88e0b Merge "Removing dependency on wallpaper size settings from launcher" into ub-launcher3-calgary 2016-03-21 18:32:41 +00:00
Sunny Goyal b46b150410 Merge "Deleting the unrestored widget id synchronously" into ub-launcher3-calgary 2016-03-19 15:50:18 +00:00
Sunny Goyal f305520808 Merge "Fixing broken instrumentation tests when run from command line" into ub-launcher3-calgary 2016-03-19 00:52:41 +00:00
Sunny Goyal 7eab3cc374 Fixing broken instrumentation tests when run from command line
Change-Id: I923cdbaaaf18c9b765d1e70122b92cd2c1621e06
2016-03-18 17:48:53 -07:00
Adam Cohen 82fa92011b Center folders slightly less aggressively than before
-> Some slight changes in spacing showed that we were centering
   folders a bit too eagerly
-> Once there is less than a ~4x delta between the spacing on the left
   vs. the right of the folder, center it.

issue 27671587

Change-Id: Ic2861ab375d9b9e4cf0eeb28b683073246f35c97
2016-03-18 17:42:48 -07:00
Sunny Goyal 047317735c Deleting the unrestored widget id synchronously
> We are making the DB call (IO) on the UI thread which is costlier than
the AppWidgetHost call.
> The process can get killed after the broadcast receiver returns, which
can prevent these ids from getting deleted.

Change-Id: I47746cf03d0eae573b6baa25cde9e573fd1f1a60
2016-03-18 16:29:08 -07:00
Sunny Goyal 3bbbabc54a Fixing model being updated on UI thread
> When package gets unavailable or suspended, the disabled flag was getting
updated on the UI thread. This could lead to inconsistent model if launcher
activity didn't exist.
> Fixing: When unsuspending one work profile apps, all work profile apps get
unsuspended

Bug: 27673573,27673373,27403236
Change-Id: I7fde3f79c36204e73ca66ccf8431fa0f0cce3d08
2016-03-18 15:13:28 -07:00
Sunny Goyal b8f00da8de Merge "Removing dependency on LauncherCallbacks for getting the search bounds" into ub-launcher3-calgary 2016-03-18 20:19:34 +00:00
Sunny Goyal 4ddc40130a Creating WidgetCellItem to wrap LauncherAppWidgetProviderInfo and resolveInfo
In PackageItemInfo,, using the user of the first item in the sub-list

Bug: 27585511
Change-Id: I8243f0e5c831af65661ae815489e53e9fcade837
2016-03-18 11:06:01 -07:00
Sunny Goyal 6f866095c0 Removing dependency on wallpaper size settings from launcher
> Moving wallpaper desired width calculation to xml

Bug: 14470153
Change-Id: I8803af158861507a40e5d55e9aa6d515be47eefa
2016-03-17 17:04:37 -07:00
Tony Wickham 1743ac4691 Added copywrite comments to pinch-related classes.
Maybe we should write a script that checks that this is present in
all our files? I didn't do a thorough check, but wouldn't be surprised
if others were missing.

Change-Id: I4777ff618f952b9b11fde60ebc8d897cf6449032
2016-03-17 19:17:34 +00:00
Sunny Goyal 05c8c57fa7 Removing dependency on LauncherCallbacks for getting the search bounds
> Instead of handling insets in BaseContainerView, directly applying
  them to margins, as that scpace can't be used for scroll handling
> Appliying the top and bottom padding in xml
> The left & right padding is defied in xml which is reused for scroll
  handling

Bug: 27108154
Change-Id: Ia32e6d5e8fd1bfafb1d77d1244ce2268e4da9df9
2016-03-17 11:57:39 -07:00
Sunny Goyal 1bc8fc3de2 Merge "Creating database without localized collators on NYC and above" into ub-launcher3-calgary 2016-03-17 18:40:33 +00:00
Sunny Goyal bf67f3b184 Creating database without localized collators on NYC and above
Android automatically creates and maintains a metaData table to
store the current device locale. This is used when fetching
sorted results. Since Laucher does not require string based
sorting on its tables, we can avoid unnecessary IO by disabling
this feature

Bug: 24608776
Change-Id: I8bbf5ca3abd505be95a85cfc99dd0438966575e9
2016-03-17 11:40:04 -07:00
Tony Wickham c5b31965d9 Don't listen for the pinch gesture if the workspace is locked.
Bug: 27639653
Change-Id: I1f3b324a4b95cc5deaa2513dcbf4ed5a158a4866
2016-03-16 16:28:21 -07:00
Tony Wickham 95cdb3a021 Remove scrim on highlighted spring-loaded panel.
Bug: 27135377
Change-Id: I470955ed082a45ae7dc5f8fdd1f3decb2b573dbc
2016-03-16 11:09:09 -07:00
Sunny Goyal 16466f1bbb Adding UI tests for various bind widget flows
Change-Id: I634302051886baee6b6424f69bc95db860b4823e
2016-03-15 15:34:25 -07:00
Sunny Goyal 44d0b5355d Closing folder in onSaveInstanceState
folderInfo.isOpened is part of static model, where is the open folder
state is part of the UI. This resets the static model, when the
UI is about to be reset
This also causes the folders to get closed when launcher gets hidden

Partial revert of: Ie1318b82b497957b99603b11ec338dd50d51b962

Bug: 27596291, 24900496, 27624924
Change-Id: I30c2bb99a19fdd95a1b997d07066f80be812e2c0
2016-03-15 09:44:49 -07:00
Hyunyoung Song 109daead4d Merge "Fix widget tray clipping due to wrong padding" into ub-launcher3-calgary 2016-03-14 18:02:47 +00:00
Hyunyoung Song 58e61ac216 Fix widget tray clipping due to wrong padding
b/27380335
padding was set wrong when the widget view hierarchy was
being refactored in this CL: ag/870011

Change-Id: I003634acded2bbe204098c0e6fefff13d154b5d6
2016-03-14 11:00:07 -07:00
Sunny Goyal 499bbfa2ef Fixing black lowres icons
Bug: 27598858
Change-Id: Ib7c9b1e3abe54b94741e154bc8327d06f83e439c
2016-03-10 19:53:05 -08:00
Sunny Goyal d856074d90 Merge "Changing the widget loading strategy" into ub-launcher3-calgary 2016-03-10 04:22:37 +00:00
Sunny Goyal 2e1efb480a Changing the widget loading strategy
Widget is loaded only when the user enters the overview mode and we keep
the list updated as long as the user is in the overview mode. Once the user
leaves the overview mode, we stop responding to widget updates

Bug: 26077457
Change-Id: I9e4904b8f1300bfe0d77e2bc5f59aa6963fad8d1
2016-03-09 20:21:22 -08:00
Hyunyoung Song 8fd5e938d3 Add getUserEventLogger to LauncherCallbacks
b/26494415

Change-Id: I8abaaf1269c12435a523e31bf769991018ea5c02
2016-03-08 16:55:47 -08:00
Tony Wickham dadb304b46 Pinch to zoom out into overview mode.
There are 3 classes coordinating the gesture: PinchToOverviewListener,
PinchThresholdManager, and PinchAnimationManager.
- PTOL listens for the pinch gesture on DragLayer.
- When a pinch is detected, the PTOL keeps track of the interpolated
  progress and passes it along to both the PTM and PAM.
- The PTM uses the progress to determine whether a new threshold has
  been passed, and tells the PAM to animate it if so.
- The PAM uses the progress to animate things like workspace scale
  throughout the pinch.
- If the pinch ends early, the PTOL uses the last passed threshold to
  determine whether to animate to workspace or overview, and tells
  PAM to perform the animation at the same velocity as the pinch.

Bug: 24414635
Change-Id: I9e53706c705f8b2982409bf7c223d8d0e9618bf0
2016-03-04 16:52:54 -08:00
Sunny Goyal cd50a0fade Adding back LAUNCHER3_ICON_NORMALIZATION feature flag to fix dependency breakage
Change-Id: I65376fde1d6681c00cdf2226a94bd9872b00cc6f
2016-03-04 14:53:59 -08:00
Hyunyoung Song 5f03934774 Trim down the logging class
am: 3650019856

* commit '3650019856ad9bd44ad8ecb591917f7f2520e8d6':
  Trim down the logging class
2016-03-04 20:16:57 +00:00
Hyunyoung Song 3650019856 Trim down the logging class
b/26494415

Change-Id: I9035f515e4eb54af8f8ad2f29ab294d2ac9760e8
2016-03-04 12:00:25 -08:00
Hyunyoung Song c6409a8991 Define generic logging class
am: a9c69ce09c

* commit 'a9c69ce09c164c8ad0191e05318460d0955825a7':
  Define generic logging class
2016-03-04 19:16:49 +00:00
Hyunyoung Song a9c69ce09c Define generic logging class
b/26494415

Change-Id: I5fbf54eb5986eb49a62ba51d41aab43e00a9ca12
2016-03-04 11:02:40 -08:00
Sunny Goyal 97660f7a94 resolve merge conflicts of 2494c3f168 to ub-launcher3-calgary
Change-Id: I807016057da9b867ebb2c8f3ee2027a3a2688d30
2016-03-03 13:52:22 -08:00
Sunny Goyal 3169e9c331 Fixing mismatch comment in flags
Change-Id: Ie86e2ebd4f40653fb127a239b57361164ef31b07
2016-03-03 13:38:58 -08:00
Sunny Goyal 531cda693d Using a negative flag for icon notmalization
Change-Id: Iaa94aea730d2b5cc3f15f3578f240127ca0eef63
2016-03-03 13:30:57 -08:00
Sunny Goyal 2494c3f168 Moving createMarketSearchIntent to search controller to allow it to be customizable
Change-Id: I3a05abf7c0357a2f92c8a3fa2dc223f9eacc221e
2016-03-03 11:36:38 -08:00
Sunny Goyal 9e3fee1427 Starting market search whenever the search key is pressed
Bug: 27365428
Change-Id: I508cb35cd1aaab1eac6cf60014fa6f80592365ef
(cherry picked from commit 992a5f566e)
2016-03-03 18:36:35 +00:00
Adam Cohen efca0279eb Switch all folder preview rendering to be programmatic (ie. no assets)
-> Refactored the preview background rendering to be much more self-contained.
   This cleans up a lot of code in the CellLayout, and keeps the logic in the
   right place.
-> We switch to software rendering for performance and compatibility reasons.
-> Removed all assets.
-> FolderIcon accept animation includes animation of the clipped region.
-> 1:1 hand-off of drawing of the FolderIcon background between the FolderIcon
   and the CellLayout. Unfortunately, CellLayout rendering is still required
   to work around clipping issues (due to use of software layer). We also
   need this to support folder creation feedback.

Change-Id: Ib8f7fa6359dfedff8145f38dd50ba03849ca0d51
2016-03-03 09:24:45 -08:00
Sunny Goyal 992a5f566e Starting market search whenever the search key is pressed
Bug: 27365428
Change-Id: I508cb35cd1aaab1eac6cf60014fa6f80592365ef
2016-03-02 11:32:18 -08:00
Hyunyoung Song a10bf37446 Merge "Prevent work profile widget DnD crash b/26079469" into ub-launcher3-burnaby-polish
am: 5cc55a143a

* commit '5cc55a143a2ed35d6f2ac1fe57a4e8b3e26d47a0':
  Prevent work profile widget DnD crash b/26079469
2016-03-01 19:59:45 +00:00
Hyunyoung Song 5cc55a143a Merge "Prevent work profile widget DnD crash b/26079469" into ub-launcher3-burnaby-polish 2016-03-01 19:58:45 +00:00
Hyunyoung Song 3e840f4343 Prevent work profile widget DnD crash
b/26079469

Change-Id: I3d49ac498bbaaef8ca8a3051f5ab4b35ef771410
2016-03-01 11:57:44 -08:00
Sunny Goyal e670159cfe Merge "Fixing homescreen getting blank when returning from the overlay" into ub-launcher3-calgary 2016-03-01 01:07:39 +00:00
Sunny Goyal 061380a04d Fixing scrollTo getting called even though the gesture was handled by an overlay
Change-Id: Ia46c4ef3db8a3ae4fa615625b7b983d7e461c797
2016-02-29 15:15:39 -08:00
Sunny Goyal f323002e26 Merge "Chaning shadow algorithm to reuse bitmap instead of creating a new bitmap on every tap" into ub-launcher3-calgary 2016-02-26 19:28:34 +00:00