Commit Graph

432 Commits

Author SHA1 Message Date
Sunny Goyal
f076eae0ca Adding support for migrating the grid between any two valid screens sizes.
The grid is migrated in steps where each step consists of at max one column change and at max one row change.
Adding some unit tests for GridMigrationLogic

Bug: 25958224
Change-Id: Ie54e872ea0925cc4c463edbba0a7201d62b373a0
2016-01-20 11:58:09 -08:00
Sunny Goyal
f862a26347 Extending the grid migration logic to handle density changes
For hotseat migratino, we simply drop the items with least weight
If the workspace row/column decreases by 2 or more, we clear the whole workspace

Bug: 25958224
Change-Id: I7131b955023d185ed10955f593184b9238546dc8
2016-01-06 10:16:44 -08:00
Sunny Goyal
13f682f74e Fixing some invalid checks and cleaning some redundant conditions
am: b740f59c7d

* commit 'b740f59c7d572d54402e3a74fb2a23c0f1b1af48':
  Fixing some invalid checks and cleaning some redundant conditions
2015-12-18 11:20:41 -08:00
Sunny Goyal
b740f59c7d Fixing some invalid checks and cleaning some redundant conditions
Change-Id: I770ce2cc2eccbee105958634e81bbc9bc2e4cc48
2015-12-18 11:00:14 -08:00
Sunny Goyal
c3642d4509 Build fix
Change-Id: I0bf4241aa48f25f2b5774726d1d75dfb5a20a2e5
2015-10-30 10:27:08 -07:00
Sunny Goyal
4f63c76bfe Merge "Refactoring WallpaperOffsetInterpolator to a new file Removing some us unused methods" into ub-launcher3-master 2015-10-30 00:33:46 +00:00
Sunny Goyal
d249748abf Making all provider calls using content resolver.
This will allow us to easily move db creation out of onCreate

Change-Id: Idd949624b0a9c95e4451e48db7764b7b7922c40a
2015-10-20 11:04:44 -07:00
Sunny Goyal
9eba1fd75e Refactoring WallpaperOffsetInterpolator to a new file
Removing some us unused methods

Change-Id: Ife790e5ca6848fa13dc3fab1bba1e6220bf83743
2015-10-16 09:02:25 -07:00
Winson
722e85678a resolved conflicts for 1845049c to ub-launcher3-master
Change-Id: I25a01a0735be754f4c8daef5a4a04eaec651b95c
2015-10-07 13:04:30 -07:00
Sunny Goyal
a13654529c Adding some information in bug reports
> Dumping workspace items
  > Dumping loader logs for crashes and data deletion
  > Removing unnecessary log dumps

Change-Id: Ia320988c2e3665e4d605d6e88bca77738e749273
2015-10-01 15:48:35 -07:00
Winson
12fb9fc3c3 Replace Long.compare() with implementation.
- Long.compare() was added in API level 19.

Change-Id: Ic7020c941403c10daa6feacdc737c6a82676ada0
2015-10-01 15:34:08 -07:00
Winson
e993c4b275 resolved conflicts for 850de64c to ub-launcher3-master
Change-Id: Ica4893082f03afe76abd42dca44016eb9e436c35
2015-09-29 17:39:37 -07:00
Winson
46a06da01c Fixing other missing cases of truncated sorts.
Bug: 24505761
Change-Id: I9b9358e8b134f0c4aac32ac536d9c8a1f0629957
2015-09-29 16:58:02 -07:00
Winson
8660cf5d1b am 17e2d495: Use Long.compare() instead of truncating values for comparison.
* commit '17e2d49547eb8d068b1ba816c6226cf5ef77369d':
  Use Long.compare() instead of truncating values for comparison.
2015-09-25 23:23:56 +00:00
Winson
17e2d49547 Use Long.compare() instead of truncating values for comparison.
Bug: 24116808
2015-09-25 23:20:13 +00:00
Sunny Goyal
46a07220ad Merge "Build fix" into ub-launcher3-master 2015-09-18 17:18:46 +00:00
Sunny Goyal
877f92893a Build fix
Change-Id: Ic9c8872dbabbd52b902a5890e7213b7e450bbcfb
2015-09-18 10:18:25 -07:00
Sunny Goyal
b3cf2d789e Merge "Refactoring deferred bind logic" into ub-launcher3-master 2015-09-18 17:18:10 +00:00
Sunny Goyal
9b75b5f8dc am 31860581: Catching RemoteExceptions when calling packagemanager to get list of shortcuts
* commit '31860581536b3fee0221456a2dcc5d6d6f2b7e15':
  Catching RemoteExceptions when calling packagemanager to get list of shortcuts
2015-09-18 17:05:41 +00:00
Sunny Goyal
8c2fdd4c44 am 31860581: Catching RemoteExceptions when calling packagemanager to get list of shortcuts
* commit '31860581536b3fee0221456a2dcc5d6d6f2b7e15':
  Catching RemoteExceptions when calling packagemanager to get list of shortcuts
2015-09-18 17:05:39 +00:00
Sunny Goyal
3186058153 Catching RemoteExceptions when calling packagemanager to get list of shortcuts
Bug: 23796963
Change-Id: I5486c2916e981e7135edd5df360536a362bc2795
2015-09-18 09:15:22 -07:00
Sunny Goyal
1daf7f792a Merge "Build fix" into ub-launcher3-master 2015-09-17 22:07:19 +00:00
Sunny Goyal
05247be8aa am 0f196e69: Merge "Null check when getting list of widget receivers" into ub-launcher3-burnaby
* commit '0f196e6939ee9f23ea24d046e74fd1d1d3fc953f':
  Null check when getting list of widget receivers
2015-09-17 22:03:56 +00:00
Sunny Goyal
a0a311ec21 am 0f196e69: Merge "Null check when getting list of widget receivers" into ub-launcher3-burnaby
* commit '0f196e6939ee9f23ea24d046e74fd1d1d3fc953f':
  Null check when getting list of widget receivers
2015-09-17 22:03:09 +00:00
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