Commit Graph

9873 Commits

Author SHA1 Message Date
Sunny Goyal
317698bd01 Loading high resolution icons for first 3 items in a folder
> Sometimes a folder gets rearranged, without updating the model,
   like when an app in uninstalled. In that case, we need to update
   the icons for folder items, which were previously hidden

Bug: 22813360
Change-Id: I99754911c969bf2153efb2948c226c1c69219b88
2015-08-04 11:05:15 -07:00
Sunny Goyal
3f7550c1ed Merge "Calculating widget minSpans and spans statically/independent of orientation > Filtering the widget list and excluding widgets which dont fit the grid > setting minSpans for the widget item when binding." into ub-launcher3-burnaby 2015-08-04 17:27:48 +00:00
Sunny Goyal
c451da7059 Merge "Replacing exception with a log, when uninstalling an app leads to an illegal state" into ub-launcher3-burnaby 2015-08-04 02:32:57 +00:00
Sunny Goyal
912bdfcffa Replacing exception with a log, when uninstalling an app leads to an illegal state
Bug: 22491055
Change-Id: Iaf5fe20b717102bdb0a5442dcc33efea30c50d47
2015-08-03 19:31:17 -07:00
Adam Cohen
209a859ded Fix issue where scroll container shadow didn't fade out
Change-Id: I3b0104dea04009819db0375c381b8ff445b76baa
2015-08-03 19:06:50 -07:00
Sunny Goyal
233ee964a9 Calculating widget minSpans and spans statically/independent of orientation
> Filtering the widget list and excluding widgets which dont fit the grid
 > setting minSpans for the widget item when binding.

Bug: 22541314
Bug: 22559137
Change-Id: Ieda48b56c95bee0c7ec71dd691af7e23e2d43db6
2015-08-03 16:39:49 -07:00
Winson Chung
153b02a5e6 Merge "Remove handler for searchables changed broadcast." into ub-launcher3-burnaby 2015-08-03 22:14:53 +00:00
Winson Chung
88fa741e50 Remove handler for searchables changed broadcast.
Bug: 22515084
2015-08-03 14:25:28 -07:00
Sunny Goyal
6eeab68fd4 Fixing drag outline positions for folder over hotseat
Bug: 22506247
Change-Id: Ia2508307554089205fd678987454e81cb811a59b
(cherry picked from commit 92bce43164)
2015-08-03 17:19:37 +00:00
Sunny Goyal
8f375d1e68 Merge "Enabling logging for migration task" into ub-launcher3-burnaby 2015-07-31 22:01:31 +00:00
Adam Cohen
519a40f731 am a547c451: Revert "Add proto flag "javanano_use_deprecated_package" to avoid build breakage"
* commit 'a547c4516c1a2dfd87f3466fccffd5ca6c5cab8c':
  Revert "Add proto flag "javanano_use_deprecated_package" to avoid build breakage"
2015-07-31 21:10:14 +00:00
Adam Cohen
a547c4516c Revert "Add proto flag "javanano_use_deprecated_package" to avoid build breakage"
This reverts commit cb7674118c.

Change-Id: I831abe3746be49fd164046655e8c5e059bae074f
2015-07-31 21:06:10 +00:00
Winson Chung
e990d49534 Merge "Fixing minor memory leak with name comparator." into ub-launcher3-burnaby 2015-07-31 20:08:57 +00:00
Winson Chung
ec70312dea Merge "Fixing issue with flash during overview transition." into ub-launcher3-burnaby 2015-07-31 20:04:08 +00:00
Sunny Goyal
d934e0b0b7 Enabling logging for migration task
Bug: 22353460
Change-Id: I8a9a8ea0d5523acb6d2376920535a9f4f519525d
2015-07-31 13:03:11 -07:00
Winson Chung
e8f1d047b1 Fixing issue with flash during overview transition.
- This is due to the TransitionDrawable which does not actually
  start an animation until it is first drawn.  This workaround
  will just immediately reset the transition if it is not currently
  visible instead of animating (which is actually deferred until
  the next animation into overview mode).

Bug: 22414257
Change-Id: Id481303d0c99a20c1d16396c024ab50303f45576
2015-07-31 12:59:11 -07:00
Sunny Goyal
e5bb705fb7 Homescreen migration from a larger grid to a smaller grid.
Adding support for restoring from a larger device, if the grid size
difference is not more that 1.
During restore add all the items in the DB, and run a one-time migration
the next time launcher starts.

The migration strategy is defined in ShrinkWorkspaceTask.java which involves
resizing, moving and removing some items.

Change-Id: I6ee411f6db5bf0152b527e16146a88c56dec2d97
2015-07-31 12:03:33 -07:00
Adam Cohen
e40e77b34f am cb767411: Add proto flag "javanano_use_deprecated_package" to avoid build breakage
* commit 'cb7674118c6fa6849e657fb8fea25c8fd93477cc':
  Add proto flag "javanano_use_deprecated_package" to avoid build breakage
2015-07-31 18:49:57 +00:00
Adam Cohen
42d88768c5 am 0ff535ea: (-s ours) Remove references to FloatMath, deprecated in M
* commit '0ff535eabbdf27ec5a790adbc64f27f8c63e7399':
  Remove references to FloatMath, deprecated in M
2015-07-31 18:49:57 +00:00
Adam Cohen
cb7674118c Add proto flag "javanano_use_deprecated_package" to avoid build breakage
Change-Id: Iea8a7bc2bb385e066b3f972105224fee3eb7c894
2015-07-31 11:15:49 -07:00
Winson Chung
3ea54fdb49 Merge "Fixing issue with accessibility falsely reporting app count when there are no search results." into ub-launcher3-burnaby 2015-07-30 23:57:08 +00:00
Winson Chung
1014e7de0e Merge "Prevent crash when flattening ComponentKey to string with invalid user." into ub-launcher3-burnaby 2015-07-30 23:46:11 +00:00
Hyunyoung Song
176196c0ac Merge "Prevent from widget cell preview image from being cut off." into ub-launcher3-burnaby 2015-07-30 22:19:49 +00:00
Hyunyoung Song
b9f932e089 Prevent from widget cell preview image from being cut off.
b/22541466

>TL;DR;; when introducing mProfileBadgeMargin to correctly place
> work profile badge. Drawing origin of the preview image resulted
> to the left of (0, 0).

Change-Id: Ic52fc2e17c55c76f4f57aa833451ffa19bbbeb09
2015-07-30 15:04:59 -07:00
Adam Cohen
0ff535eabb Remove references to FloatMath, deprecated in M
-> Allows us to build against M SDK

issue 22822360

Change-Id: I1178eb6bafc348699c5be8c29858eb3dff093e11
2015-07-30 13:04:54 -07:00
Winson Chung
deaf4d169b Fixing issue with accessibility falsely reporting app count when there are no search results.
Bug: 22672783
Change-Id: Ie40acc592e59699eac2a4ff2045a7f8ba029d33a
2015-07-30 12:54:27 -07:00
Winson Chung
70d5a07c5d Prevent crash when flattening ComponentKey to string with invalid user.
Bug: 22658306
Change-Id: I213d44e0bb22ac0617d46c80ab8cfec8f750a2cc
2015-07-30 12:05:41 -07:00
Sunny Goyal
fd69e0b527 Merge "Adding rank column in backup" into ub-launcher3-burnaby 2015-07-30 18:01:49 +00:00
Winson Chung
946609f0ea Merge "Fixing overview mode scale calculations." into ub-launcher3-burnaby 2015-07-28 22:38:14 +00:00
Winson Chung
eea0225304 Fixing minor memory leak with name comparator.
- WidgetsAndShortcutNameComparator was using the actual widget and shortcut resolve
  infos as the key to the label cache.  Neither of these classes override hashCode()
  and we were retrieving a new set of widgets and shortcuts whenever packages changed
  so we would end up creating more and more entries in the cache.  This isn't a huge
  leak, but could lead to problems if Launcher is used for long periods without being
  killed.
- Now, we use a ComponentKey as the key, so that we don't keep a reference to the
  widget/shortcut infos and also ensures that they should hash to the same labels.

Change-Id: I91347ee72363adbc2b075b67dba331e35ab1fe34
2015-07-27 18:35:28 -07:00
Hyunyoung Song
d30e845d89 Overlay support lib RV resources in Android.mk
Note: after this change, ag/735298 can be reverted.

b/22719084

Change-Id: I83caf8832790b1df0a90a1339f6b24f481c51661
2015-07-27 18:24:45 -07:00
Hyunyoung Song
a9095e07dd Remove NPE inside WidgetsListAdapter during monkey actor test
b/22518383

Change-Id: I1a683c49be93af150f7873390b723cee0d4ac5df
2015-07-27 13:35:33 -07:00
Adam Cohen
e54fa58d10 Merge "Don't obfuscate Launcher3" into ub-launcher3-burnaby 2015-07-25 00:26:34 +00:00
Adam Cohen
ce77f36aff Don't obfuscate Launcher3
Change-Id: I86ac745602c0d3c09842ed9553f7589c232f5d23
2015-07-24 16:26:33 -07:00
Sunny Goyal
107ea6345b Adding rank column in backup
> targetType was only added for M builds, so it can also be considered
  as v4 change. V3 which introduced minSpanX and minSpanY didn't
  contain targetType

Bug: 22417713
Change-Id: I5c353674f7e0c2b5b4ab46e574fdb347d82028cd
2015-07-22 16:48:23 -07:00
Sunny Goyal
7e0a403759 Merge "Shifting hotseat icons to aling with all-apps icon, if the hotseat size is different from the source device" into ub-launcher3-burnaby 2015-07-21 01:50:38 +00:00
Sunny Goyal
3ba922aa62 Merge "Fixing widget restore" into ub-launcher3-burnaby 2015-07-21 00:42:42 +00:00
Sunny Goyal
1b21faef02 Merge "Resizing the bitmap before caching it in the DB" into ub-launcher3-burnaby 2015-07-21 00:41:44 +00:00
bohu
86179020cc Enable Launcher3 as default Home app
The default Home app launcher2 is deprecated and cannot launch Nexus 6
or any other high resolution devices in emulator. This CL enables launcher3
as the default Home app, since it can handle Nexus 6 and is well maintained.

Bug: 22609402
Change-Id: Iaba545fec218f79e40e0f72de5236ddadfabaa14
2015-07-20 22:23:27 +00:00
Sunny Goyal
df6ccf8196 Resizing the bitmap before caching it in the DB
> The icon size in the backup can be different that what is
  required by the device. We should resize the icon, before
  caching it.

Bug: 22413328
Change-Id: Id77c53edf8ea5e95a2d32dbe22be553120279ebd
2015-07-20 14:34:30 -07:00
Sunny Goyal
c115e647ad Shifting hotseat icons to aling with all-apps icon, if the hotseat
size is different from the source device

Bug: 19074056
Change-Id: I8d8517971a3cde0dc38f653d151daeba90fa38a0
2015-07-20 14:25:04 -07:00
Sunny Goyal
53f9672b30 Fixing widget restore
> Widget restore active flag was not cleared when the app was downloaded
> Icon from session info was not getting cached

Bug: 22413379
Change-Id: Ie096b929252200675a76dadd8c25cc3aa433671b
2015-07-20 12:00:22 -07:00
Sunny Goyal
e3fe3f89ee am 249a510a: (-s ours) [DO NOT MERGE] Adding minSpanX and minSpanY for all the launcher widgets
* commit '249a510ab318db461ce1ac86baca01021fe41a2c':
  [DO NOT MERGE] Adding minSpanX and minSpanY for all the launcher widgets
2015-07-17 19:36:00 +00:00
Sunny Goyal
b04136b471 Merge "Adding minSpanX and minSpanY for all the launcher widgets" into ub-launcher3-burnaby 2015-07-17 18:56:38 +00:00
Sunny Goyal
3a30cfeb7c Adding minSpanX and minSpanY for all the launcher widgets
Bug: 22353460
Change-Id: Id4450dee42a83e4603dcd56e1c4dec2b0e405858
2015-07-17 11:10:05 -07:00
Sunny Goyal
249a510ab3 [DO NOT MERGE] Adding minSpanX and minSpanY for all the launcher widgets
Bug: 22353460
Change-Id: Id4450dee42a83e4603dcd56e1c4dec2b0e405858
2015-07-16 19:35:36 -07:00
Hyunyoung Song
f63dda5e15 Query the title and icon for app using correct user handle.
> Note: when there are corp and regular user profile widget providers,
it is guaranteed that regular user profile widget provider is always
queried first. Thsi is guaranteed because inside AppWidgetManagerCompat.getProviders(),
regular user always takes prescedence when iterating thru different providers
associated to different users.

Change-Id: I5e38e1fb30925ccba7e1e2925fd3e77c44a14901
2015-07-16 17:24:30 -07:00
Hyunyoung Song
7dc9a0f7d7 Merge "Fix issue where corp app widget doesn't show correctly on drop targets." into ub-launcher3-burnaby 2015-07-16 23:37:36 +00:00
Hyunyoung Song
ffd0ab4da1 Fix issue where corp app widget doesn't show correctly on drop targets.
b/22535234

Change-Id: I6e57c7728704ad0f99df25257211243a23d26acd
2015-07-16 16:36:59 -07:00
Sunny Goyal
36db85679d Merge "Fixing AppWidgetInfo not initialized with proper user" into ub-launcher3-burnaby 2015-07-16 01:13:01 +00:00