Commit Graph

16456 Commits

Author SHA1 Message Date
Hyunyoung Song 47ced24711 am 176196c0: Merge "Prevent from widget cell preview image from being cut off." into ub-launcher3-burnaby
* commit '176196c0acae9872cf2d32446e558bd381a9bafa':
  Prevent from widget cell preview image from being cut off.
2015-07-31 04:10:11 +00: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
Vadim Tryshev d6c8e7eeb1 Code to enable dragging to System UI shelf.
This CL doesn’t let the new code run, it’s under a compile-time flag,
and the behavior should be same as before.

The change introduces a concept of a DragDriver, which encapsulates
behavior of the existing DND (InternalDragDriver) or the framework-
driven DND (SystemDragDriver).

An instance of DragDriver gets created by DragController for the time
while a DND operation is in progress, and it takes care of translating
DND events for DragController.

Also did some cleanups, like removing meaningless fields etc.

Plans for future: keep working in Burnaby, and:
* Perhaps, better separate DragDriver from DragController
* Detect fling gesture for system DND
* Look at accessibility
* Polish animations and appearance
* Fix dragging from folders
* Support cancelling DND

Then, it will become possible to enable new dragging (based on Android
version).

Bug: 22028725
Change-Id: I41b40e9d512d83937f5b101ac8e3e8e7e807c269
2015-07-30 13:06:25 -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 168a3d1360 am fd69e0b5: Merge "Adding rank column in backup" into ub-launcher3-burnaby
* commit 'fd69e0b527b7b6c0646072325fa232313e46bbc5':
  Adding rank column in backup
2015-07-30 18:05:08 +00:00
Sunny Goyal fd69e0b527 Merge "Adding rank column in backup" into ub-launcher3-burnaby 2015-07-30 18:01:49 +00:00
Winson Chung 687ae8483d am 946609f0: Merge "Fixing overview mode scale calculations." into ub-launcher3-burnaby
* commit '946609f0ea70e1361dbe979af0e054d4c18b929b':
  Fixing overview mode scale calculations.
2015-07-28 22:54:51 +00:00
Winson Chung 946609f0ea Merge "Fixing overview mode scale calculations." into ub-launcher3-burnaby 2015-07-28 22:38:14 +00:00
Sunny Goyal 5e758cae9a Merge "Changing the dogfood check to a static boolean to better handle proguard optimizations" into ub-launcher3-master 2015-07-28 19:37:00 +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 cf235922c7 am a9095e07: Remove NPE inside WidgetsListAdapter during monkey actor test b/22518383
* commit 'a9095e07ddd2318ceb81a2794219e07dd112df72':
  Remove NPE inside WidgetsListAdapter during monkey actor test b/22518383
2015-07-27 22:35:02 +00: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
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 1992d126f4 am 7e0a4037: Merge "Shifting hotseat icons to aling with all-apps icon, if the hotseat size is different from the source device" into ub-launcher3-burnaby
* commit '7e0a403759c401d3b94f4576bca3aa8fb94fe542':
  Shifting hotseat icons to aling with all-apps icon, if the hotseat size is different from the source device
2015-07-21 02:00:20 +00: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 27defa5dd6 am 3ba922aa: Merge "Fixing widget restore" into ub-launcher3-burnaby
* commit '3ba922aa62b70bc0a3307e43980c4ff189486694':
  Fixing widget restore
2015-07-21 00:53:52 +00:00
Sunny Goyal 293a4dafd4 am 1b21faef: Merge "Resizing the bitmap before caching it in the DB" into ub-launcher3-burnaby
* commit '1b21faef02f173d7a8b80fe01d34f57b5e28a4b4':
  Resizing the bitmap before caching it in the DB
2015-07-21 00:53:50 +00:00
Sunny Goyal 3ba922aa62 Merge "Fixing widget restore" into ub-launcher3-burnaby 2015-07-21 00:42:42 +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 05be6b7649 am b04136b4: Merge "Adding minSpanX and minSpanY for all the launcher widgets" into ub-launcher3-burnaby
* commit 'b04136b4714a0d9afddab6a70045f4f4f7fa1ee4':
  Adding minSpanX and minSpanY for all the launcher widgets
2015-07-17 19:06:46 +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
Hyunyoung Song 11bebbc463 am f63dda5e: Query the title and icon for app using correct user handle.
* commit 'f63dda5e153febf0b5163ac41d927129ec822314':
  Query the title and icon for app using correct user handle.
2015-07-17 00:39:17 +00: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 a1ce66dfb7 am 7dc9a0f7: Merge "Fix issue where corp app widget doesn\'t show correctly on drop targets." into ub-launcher3-burnaby
* commit '7dc9a0f7d7e138cb9e685609777021b74e8dd67b':
  Fix issue where corp app widget doesn't show correctly on drop targets.
2015-07-16 23:49:15 +00: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 25aba0aea5 Removing boot receiver.
> Registering the receiver at runtime, only when it is required
> Using system property sys.boot_completed to check if boot completion
> This prevents unnecessary process startup during system bootup

Change-Id: I68f99ecf2e1ffd2ca7b6d15a99a282451bf67aec
2015-07-16 15:17:57 -07:00
Sunny Goyal 8239daded4 Merge "Fixing drag outline positions for folder over hotseat" into ub-launcher3-master 2015-07-16 22:09:32 +00:00
Sunny Goyal 92bce43164 Fixing drag outline positions for folder over hotseat
Change-Id: Ia2508307554089205fd678987454e81cb811a59b
2015-07-16 15:08:41 -07:00
Sunny Goyal 6c56c68555 Changing the dogfood check to a static boolean to better handle proguard optimizations
Change-Id: I892b88ce1a007fafc23a73ad4193c5c4aa411d1b
2015-07-16 14:09:53 -07:00
Sunny Goyal 14031ebb81 am 36db8567: Merge "Fixing AppWidgetInfo not initialized with proper user" into ub-launcher3-burnaby
* commit '36db85679d492888f03654fa04f6c291e74168e7':
  Fixing AppWidgetInfo not initialized with proper user
2015-07-16 01:18:27 +00:00
Sunny Goyal 36db85679d Merge "Fixing AppWidgetInfo not initialized with proper user" into ub-launcher3-burnaby 2015-07-16 01:13:01 +00:00
Adam Cohen ec66a6d0f7 am 84a62861: Merge "Fix issue with UiThreadReveal on L devices" into ub-launcher3-burnaby
* commit '84a62861d6ba91f3b0822d6da0c1c7eedf9b3f0e':
  Fix issue with UiThreadReveal on L devices
2015-07-16 00:53:56 +00:00
Sunny Goyal ab7a4fe206 Fixing AppWidgetInfo not initialized with proper user
Bug: 21673750
Change-Id: I1e03c3cb10a87e394e963cc2001c9c1c293eb2ca
2015-07-15 17:39:33 -07:00
Adam Cohen 84a62861d6 Merge "Fix issue with UiThreadReveal on L devices" into ub-launcher3-burnaby 2015-07-16 00:38:11 +00:00
Adam Cohen 54e362121f Fix issue with UiThreadReveal on L devices
issue 22507784

Change-Id: If75292b21a1b572903099ab0682d5c7f69a960f4
2015-07-15 17:35:56 -07:00
Sunny Goyal b7443004d8 am 0c13a34f: Merge "Using highres icons for backup" into ub-launcher3-burnaby
* commit '0c13a34fd1f32a8cb8c5cec06553e3741731c756':
  Using highres icons for backup
2015-07-15 18:03:12 +00:00
Sunny Goyal 0c13a34fd1 Merge "Using highres icons for backup" into ub-launcher3-burnaby 2015-07-15 17:55:11 +00:00
Sunny Goyal 09d70195d7 Using highres icons for backup
Bug: 22410445
Change-Id: I0fbc2d1217127556af806f12dbb5960712627ab7
2015-07-15 10:18:09 -07:00
Hyunyoung Song eaa3750a01 am 321dea13: Merge "Widget row should not be cut off on the right, when there is an indent" into ub-launcher3-burnaby
* commit '321dea1346ba6e0e49a0cfc49b9303f3d7cfe303':
  Widget row should not be cut off on the right, when there is an indent
2015-07-15 00:09:38 +00:00
Hyunyoung Song 321dea1346 Merge "Widget row should not be cut off on the right, when there is an indent" into ub-launcher3-burnaby 2015-07-14 23:58:14 +00:00
Hyunyoung Song 6fdc2035ea Widget row should not be cut off on the right, when there is an indent
b/22483452

Change-Id: I9d1cd8b71f4b6a4f75af420e9f54b73e9ae7527c
2015-07-14 16:52:35 -07:00
Sunny Goyal 2f824acaab am 2a1be7a6: Merge "Fixing shortcuts not getting migrated to app icons" into ub-launcher3-burnaby
* commit '2a1be7a6165b49d21396bcb228a468bc79dd4d3e':
  Fixing shortcuts not getting migrated to app icons
2015-07-14 17:56:28 +00:00