Commit Graph

508 Commits

Author SHA1 Message Date
Sunny Goyal
3a6205f820 Build fix
Change-Id: I42941ccd7a104a85b0314806b6d34e734f47aa5d
2015-09-17 15:01:11 -07:00
Sunny Goyal
0f196e6939 Merge "Null check when getting list of widget receivers" into ub-launcher3-burnaby 2015-09-17 21:52:13 +00:00
Sunny Goyal
ace3aa210b am 79afe010: Throwing system api call exceptions in case of dogfood builds
* commit '79afe010d55af6b1753430a334bf6e24448e9375':
  Throwing system api call exceptions in case of dogfood builds
2015-09-17 21:38:27 +00:00
Sunny Goyal
a3c657750a am 79afe010: Throwing system api call exceptions in case of dogfood builds
* commit '79afe010d55af6b1753430a334bf6e24448e9375':
  Throwing system api call exceptions in case of dogfood builds
2015-09-17 21:38:25 +00:00
Sunny Goyal
7b221efa53 Null check when getting list of widget receivers
Bug: 23897605
Change-Id: Ib23b394828b0e5ec50bf7452b2ec2c905f4a6fbc
2015-09-17 14:09:27 -07:00
Sunny Goyal
79afe010d5 Throwing system api call exceptions in case of dogfood builds
Change-Id: I28bad663712a22360ceed095ceb54ce71b1449d5
2015-09-17 12:50:11 -07:00
Sunny Goyal
93cf2638eb am 3dc7beea: Catching DeadObjectException and TransactionTooLarge
* commit '3dc7beea3c7f9a60070e767aa43f5877a467d3ed':
  Catching DeadObjectException and TransactionTooLarge
2015-09-15 21:20:18 +00:00
Sunny Goyal
f33b78b850 am 3dc7beea: Catching DeadObjectException and TransactionTooLarge
* commit '3dc7beea3c7f9a60070e767aa43f5877a467d3ed':
  Catching DeadObjectException and TransactionTooLarge
2015-09-15 21:19:40 +00:00
Sunny Goyal
3dc7beea3c Catching DeadObjectException and TransactionTooLarge
Bug: 23796965
Bug: 23796963
Change-Id: I4c6ed217b9925b2e6014adc374b8b21f1ba559bc
2015-09-15 13:36:46 -07:00
Sunny Goyal
527c7d3460 Refactoring deferred bind logic
> Using ViewTreeObserver to listen for onDraw instead of overriding onDraw in workspace
> Loader passes the list of deferrerd runnables to launcher

Change-Id: Ie4877f746c96e9497396de8089f00f70bf867e17
2015-09-15 10:43:13 -07:00
Winson
7089a4e197 am c0b52fef: Refactoring to ensure item deletion always removes from the DB.
* commit 'c0b52fefbc11531d560359c093484099f9d1298e':
  Refactoring to ensure item deletion always removes from the DB.
2015-09-10 22:03:57 +00:00
Winson
c0b52fefbc Refactoring to ensure item deletion always removes from the DB.
- Routing the various places where we call through to delete from
  LauncherModel through Launcher, which will delegate the removal
  of the icon from the workspace, and properly handle the removal
  of all items and their contents from the db.

Bug: 23944119

Change-Id: I022fe2b3e79da16b5af87505c4362490b8422686
2015-09-10 14:55:17 -07:00
Sunny Goyal
ac7a174402 am 4abaf133: Merge "Removing items which are on invalid screen" into ub-launcher3-burnaby
* commit '4abaf133546b0c950edc82594985e9da50d9c1dd':
  Removing items which are on invalid screen
2015-09-09 17:07:57 +00:00
Sunny Goyal
41cdc8d20a Removing items which are on invalid screen
Bug: 23804751
Change-Id: If26a6b201aa6127cfd2a08fc4b408a27d6329bad
2015-09-04 15:26:17 -07:00
Sunny Goyal
8f531dd988 resolved conflicts for merge of 20884fdc to ub-launcher3-master
Change-Id: I31b49ed83bf6fa966ad68b587e6fa472e87bc0e3
2015-08-25 17:08:57 -07:00
Sunny Goyal
639e906a0f Fixing work folder addition logic
> Showing animation when folder is added
  > Not showing animation while cling is visible
  > Checking is loader completed from UI thread
  > Running bind complete runnables when bind is completed

Bug: 21772992
Bug: 23181585
Change-Id: I50742850da8294a877478ce02b107a026f68b563
2015-08-20 11:25:02 -07:00
Sunny Goyal
42e28092b3 Removing some eclipse warnings
Change-Id: I160feaee81b262be02446885fae643c0be71b7af
2015-08-17 12:56:19 -07:00
Sunny Goyal
e3e05563b7 am d21f9404: Merge "Disabling auto restore of widgets. > Always show "Setup" button for a widget which has a config activity." into ub-launcher3-burnaby
* commit 'd21f9404da5c8cdc959b483a40876b02ced35e43':
  Disabling auto restore of widgets.   > Always show "Setup" button for a widget which has a config activity.
2015-08-14 19:28:53 +00:00
Sunny Goyal
d21f9404da Merge "Disabling auto restore of widgets. > Always show "Setup" button for a widget which has a config activity." into ub-launcher3-burnaby 2015-08-14 19:23:57 +00:00
Sunny Goyal
84b4adc3fb Disabling auto restore of widgets.
> Always show "Setup" button for a widget which has a config activity.

Bug: 23155863
Change-Id: I60683889e76be830a76ac1245e079574aaf0ad10
2015-08-14 11:42:01 -07:00
Sunny Goyal
01d6688ed4 am 81056da1: Merge "Refreshing widget list when a package containing a widget changes" into ub-launcher3-burnaby
* commit '81056da1def5d872d26b6f8a4e4163f9d94871a3':
  Refreshing widget list when a package containing a widget changes
2015-08-13 20:08:28 +00:00
Sunny Goyal
81056da1de Merge "Refreshing widget list when a package containing a widget changes" into ub-launcher3-burnaby 2015-08-13 20:05:11 +00:00
Sunny Goyal
2d648b057f Refreshing widget list when a package containing a widget changes
Bug: 20698931
Change-Id: I50bafac1fc0a855edb1ace633a8a6f87a5c3040e
2015-08-11 21:25:19 -07:00
Sunny Goyal
a410e99205 am 6579e1ee: Disabling home screen migration logic
* commit '6579e1eee8a6fce44f020d40c3bbdbf245d6c12c':
  Disabling home screen migration logic
2015-08-11 21:03:31 +00:00
Sunny Goyal
6579e1eee8 Disabling home screen migration logic
Change-Id: I506948852945bfb8ebd7a95fc951880ffe9a3e17
2015-08-11 12:10:34 -07:00
Sunny Goyal
f85602b00e am 7ca3250a: Merge "Creating a cache of users to avoid multiple calls to UserManager" into ub-launcher3-burnaby
* commit '7ca3250a10d608c06a733a92cd61a2feadb9007f':
  Creating a cache of users to avoid multiple calls to UserManager
2015-08-07 18:00:50 +00:00
Sunny Goyal
823fd50902 Creating a cache of users to avoid multiple calls to UserManager
Bug: 22805101
Change-Id: I9cd270efd74fdd34a7eb738fc25797e6f1bf2487
2015-08-04 12:37:05 -07:00
Sunny Goyal
f9ada46270 am 317698bd: Loading high resolution icons for first 3 items in a folder
* commit '317698bd012c1930b83bb4e2e47ac9e363fa6c6a':
  Loading high resolution icons for first 3 items in a folder
2015-08-04 18:09:20 +00:00
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
Winson Chung
790b7ad28e am 153b02a5: Merge "Remove handler for searchables changed broadcast." into ub-launcher3-burnaby
* commit '153b02a5e69c99b1154eea107da6b2fba4c6f3a3':
  Remove handler for searchables changed broadcast.
2015-08-03 22:20:10 +00: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
7808e27363 am 8f375d1e: Merge "Enabling logging for migration task" into ub-launcher3-burnaby
* commit '8f375d1e68cdc67ce693a7693a2175ef5cb3b4eb':
  Enabling logging for migration task
2015-07-31 22:06:40 +00:00
Sunny Goyal
e745f451a5 Merge "Removing boot receiver." into ub-launcher3-master 2015-07-31 22:01:16 +00:00
Sunny Goyal
d934e0b0b7 Enabling logging for migration task
Bug: 22353460
Change-Id: I8a9a8ea0d5523acb6d2376920535a9f4f519525d
2015-07-31 13:03:11 -07:00
Sunny Goyal
c1729a4d15 resolved conflicts for merge of e5bb705f to ub-launcher3-master
Change-Id: Id7ec170a3c4b1415b18ad46a18d7ea69595a8992
2015-07-31 12:53:08 -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
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
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
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
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
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
ab7a4fe206 Fixing AppWidgetInfo not initialized with proper user
Bug: 21673750
Change-Id: I1e03c3cb10a87e394e963cc2001c9c1c293eb2ca
2015-07-15 17:39:33 -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
Sunny Goyal
c22841bfd1 Fixing shortcuts not getting migrated to app icons
Bug: 22410445
Change-Id: I939c59270529daf51638aa30b30763c18a2ce6a5
2015-07-13 20:15:37 -07:00
Winson Chung
882a52eacf Fixing minor issue with spatially sorting workspace items for binding.
Change-Id: I10e05b3ae34a8101a48b625899888c7e8de1fe71
2015-07-08 23:45:46 +00:00
Sunny Goyal
aa8ef119f1 Refactoring ItemInfo
> Changing dragObject to ItemInfo
> Removing dropPos which is always null
> Removing requiresDbUpdate which is only used in CellLayout

Change-Id: I753ddaae0880c8a9bfee5a1266095ff34610284a
2015-06-30 10:26:49 -07:00
Sunny Goyal
4e5cc64eaf Fixing backup restore
> Not deleting icons from cache, which have not been restored yet
> Not checking if activity exists during DB migration. Missing
components are removed during loader anyway
> Backing up and restoring bitmaps even when iconType is resource.
This allows us to show a proper bitmap icon, until the correct
resource is available.
> Loading proper shortcutResource icon for promiseIcons
> Checking against promise intent when verifying duplicates
> A launcher App intent can contain EXTRA_PROFILE

Bug: 22094970
Change-Id: I982971338846733833ec133119393af0bea0eb08
2015-06-25 17:41:06 -07:00
Sunny Goyal
2003c75ac4 Cancelling launcher reload on mcc change
Bug: 21022833
Change-Id: Iccd477e7b1638d162e1a500cdb7a52b8d359c657
2015-06-18 14:04:00 -07:00