Commit Graph

78507 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
Dan Willemsen 830e8eb400 Replace custom rules with BUILD_PREBUILT
Change-Id: I78d10b2237cbc25a44d5b6c230030b3782499af5
2016-03-22 21:26:28 -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 85fbf7624f Adding support for result callback when starting uninstall-application activity
am: d5bd67d

* commit 'd5bd67dfa9ee5fda2384a75231b7a68ceb8e9bd5':
  Adding support for result callback when starting uninstall-application activity
2016-03-22 21:17:47 +00: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 06780e754a Account for disparity btw folder preview size and drawable size
am: d3cc05a

* commit 'd3cc05a3a8c573986d08ee293a4bb8b4534d06b2':
  Account for disparity btw folder preview size and drawable size
2016-03-21 22:28:24 +00: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 79b764f666 Invalidate folder drawing paramaters when top padding changes
am: aa2542a

* commit 'aa2542a461072a57058ce45946ff6f5552ecce8a':
  Invalidate folder drawing paramaters when top padding changes
2016-03-21 21:26:09 +00: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 c175c6b615 Removing some unused imports
am: 470f900

* commit '470f900fce017dc015851bfe3e591be5feedf6cc':
  Removing some unused imports
2016-03-21 20:10:03 +00:00
Sunny Goyal 470f900fce Removing some unused imports
Change-Id: I83962e467e3357db536a3e5a4a5c3071cc1268ab
2016-03-21 13:02:29 -07:00
Adam Cohen 18b97932f2 Merge "Center folders slightly less aggressively than before" into ub-launcher3-calgary
am: f710664

* commit 'f7106648dbe5994cd9a38826b4a0b3910df5ed4d':
  Center folders slightly less aggressively than before
2016-03-21 19:04:00 +00: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 0cab75203c Merge "Removing dependency on wallpaper size settings from launcher" into ub-launcher3-calgary
am: ef0ac88

* commit 'ef0ac88e0b1ea3601308d5ee7afc1c6d99365e5c':
  Removing dependency on wallpaper size settings from launcher
2016-03-21 18:41:34 +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 8602f94c61 Merge "Deleting the unrestored widget id synchronously" into ub-launcher3-calgary
am: b46b150

* commit 'b46b150410fc2711ff1b5d8d16f78e2b89d4f776':
  Deleting the unrestored widget id synchronously
2016-03-19 15:53:58 +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 bb021d711b Merge "Fixing broken instrumentation tests when run from command line" into ub-launcher3-calgary
am: f305520

* commit 'f30552080842452e181113bcd333d66b56403e92':
  Fixing broken instrumentation tests when run from command line
2016-03-19 00:54:57 +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 7f11e64ed4 Fixing model being updated on UI thread
am: 3bbbabc

* commit '3bbbabc54ac73a4451b0a862a3faac6426b1b7b4':
  Fixing model being updated on UI thread
2016-03-18 23:57:29 +00: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 946e6f04b4 Merge "Removing dependency on LauncherCallbacks for getting the search bounds" into ub-launcher3-calgary
am: b8f00da

* commit 'b8f00da8deec7f65002830261042da0140cbead0':
  Removing dependency on LauncherCallbacks for getting the search bounds
2016-03-18 20:26:10 +00: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 f5158fdd22 Creating WidgetCellItem to wrap LauncherAppWidgetProviderInfo and resolveInfo In PackageItemInfo,, using the user of the first item in the sub-list
am: 4ddc401

* commit '4ddc40130aa0460924364eab3557088421eebe0c':
  Creating WidgetCellItem to wrap LauncherAppWidgetProviderInfo and resolveInfo In PackageItemInfo,, using the user of the first item in the sub-list
2016-03-18 18:45:37 +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 ed95bdf463 Merge "Creating database without localized collators on NYC and above" into ub-launcher3-calgary
am: 1bc8fc3

* commit '1bc8fc3de2113b7be9df304309a42276d642a8c4':
  Creating database without localized collators on NYC and above
2016-03-17 18:45:47 +00: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 0b16686fe6 Don\'t listen for the pinch gesture if the workspace is locked.
am: c5b3196

* commit 'c5b31965d9bcb4c9899e2d1c45b5c95c70bac9f2':
  Don't listen for the pinch gesture if the workspace is locked.
2016-03-16 23:43:49 +00: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
Dmitry Kalita 8ce0be3353 Merge "Fix restoring of layer type"
am: 0b28b42

* commit '0b28b42c0f2d94777b517c7f270956240978e4dd':
  Fix restoring of layer type
2016-03-16 18:59:22 +00:00
Tony Wickham 56210ca297 Remove scrim on highlighted spring-loaded panel.
am: 95cdb3a

* commit '95cdb3a0211650e76adb451588ce89fd585b178f':
  Remove scrim on highlighted spring-loaded panel.
2016-03-16 18:24:40 +00: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 0b28b42c0f Merge "Fix restoring of layer type" 2016-03-16 17:19:50 +00:00
Sunny Goyal afdfdbdaf1 Adding UI tests for various bind widget flows
am: 16466f1bbb

* commit '16466f1bbb935d56c01b10551ead416feb7fc943':
  Adding UI tests for various bind widget flows
2016-03-15 22:38:16 +00: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 3300cb5125 Merge "Closing folder in onSaveInstanceState" into ub-launcher3-calgary
am: 77b3e1a57b

* commit '77b3e1a57ba0801c3def173c0f6c8089eb4591f7':
  Closing folder in onSaveInstanceState
2016-03-15 16:59:08 +00:00
Sunny Goyal 77b3e1a57b Merge "Closing folder in onSaveInstanceState" into ub-launcher3-calgary 2016-03-15 16:52:06 +00: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
Adam Cohen df769f7663 Fix issue with all apps icons not being aligned
am: 35937a2530

* commit '35937a2530d46c8c65672d7e74ef994b5f47ad4e':
  Fix issue with all apps icons not being aligned
2016-03-15 05:11:28 +00:00
Adam Cohen 35937a2530 Fix issue with all apps icons not being aligned
-> The new versions of LayoutManagers in the latest support lib
   has begun to respect certain layout params (where before they
   were ignoreed). match_parent is now treated as "match column",
   which is what we want here.

issue 27581978

Change-Id: If1efed15b5a93c873ff141e3c658922819c143fb
2016-03-14 19:50:05 -07:00
Hyunyoung Song 2a98ca630e [DO NOT MERGE] Fix widget tray clipping due to wrong padding am: f4c0f7d250 -s ours
am: 0da3bc6cfb  -s ours

* commit '0da3bc6cfbd4de056e15100a0e2b2bc9e85a5d73':
  [DO NOT MERGE] Fix widget tray clipping due to wrong padding
2016-03-14 18:12:13 +00:00
Hyunyoung Song 0da3bc6cfb [DO NOT MERGE] Fix widget tray clipping due to wrong padding
am: f4c0f7d250  -s ours

* commit 'f4c0f7d2505833fac1f5dad173282d8c73cbff5d':
  [DO NOT MERGE] Fix widget tray clipping due to wrong padding
2016-03-14 18:10:12 +00:00
Hyunyoung Song 7bfa85bd8e Merge "Fix widget tray clipping due to wrong padding" into ub-launcher3-calgary
am: 109daead4d

* commit '109daead4d8e8205ee4c6f52839105efda09b914':
  Fix widget tray clipping due to wrong padding
2016-03-14 18:10:11 +00:00