OSDN Git Service

android-x86/packages-apps-Trebuchet.git
9 years agoFixing issue with casting context to activity.
Winson Chung [Thu, 25 Jun 2015 23:46:47 +0000 (16:46 -0700)]
Fixing issue with casting context to activity.

9 years agoMerge "Exposing drag methods with user info." into ub-launcher3-burnaby
Winson Chung [Thu, 25 Jun 2015 20:19:49 +0000 (20:19 +0000)]
Merge "Exposing drag methods with user info." into ub-launcher3-burnaby

9 years agoExposing drag methods with user info.
Winson Chung [Thu, 25 Jun 2015 18:36:50 +0000 (11:36 -0700)]
Exposing drag methods with user info.

Change-Id: I974b67d23d3d29795c1c1d24e1ecf212b52e3912

9 years agoEnsuring that we always update the predicted apps set.
Winson Chung [Thu, 25 Jun 2015 19:17:30 +0000 (12:17 -0700)]
Ensuring that we always update the predicted apps set.

Change-Id: Ieecf019442dcf4af42463ed6cbc4cdcd19468dec

9 years agoMerge "Fixing crash when using app name comparator with empty titles." into ub-launch...
Winson Chung [Thu, 25 Jun 2015 17:11:02 +0000 (17:11 +0000)]
Merge "Fixing crash when using app name comparator with empty titles." into ub-launcher3-burnaby

9 years agoFixing crash when using app name comparator with empty titles.
Winson Chung [Thu, 25 Jun 2015 17:05:54 +0000 (10:05 -0700)]
Fixing crash when using app name comparator with empty titles.

Bug: 22065752
Change-Id: I4160f5e1728e46ce85fd2579889e7952de01a752

9 years agoMerge "Prevent extra animation when scrolling the recycler view." into ub-launcher3...
Winson Chung [Thu, 25 Jun 2015 00:12:07 +0000 (00:12 +0000)]
Merge "Prevent extra animation when scrolling the recycler view." into ub-launcher3-burnaby

9 years agoPrevent extra animation when scrolling the recycler view.
Winson Chung [Wed, 24 Jun 2015 23:59:31 +0000 (16:59 -0700)]
Prevent extra animation when scrolling the recycler view.

Change-Id: I362b557ae63a2cbef77ebf7fac9a7a27adeabb49

9 years agoRemoving some synthetic methods
Sunny Goyal [Wed, 24 Jun 2015 18:45:32 +0000 (11:45 -0700)]
Removing some synthetic methods

Change-Id: I08310e21871c7d670eb384ef1e835d155540c3e8

9 years agoMerge "Fixing issue with popup arrow direction in RTL." into ub-launcher3-burnaby
Winson Chung [Wed, 24 Jun 2015 17:40:33 +0000 (17:40 +0000)]
Merge "Fixing issue with popup arrow direction in RTL." into ub-launcher3-burnaby

9 years agoFixing issue with popup arrow direction in RTL.
Winson Chung [Wed, 24 Jun 2015 17:25:11 +0000 (10:25 -0700)]
Fixing issue with popup arrow direction in RTL.

Change-Id: I454596d8122ae7c44bb22fe74f229d19a5fbd4d4

9 years agoMerge "Ensure that Launcher Activity has an exclusive task" into ub-launcher3-burnaby
Adam Cohen [Wed, 24 Jun 2015 16:26:13 +0000 (16:26 +0000)]
Merge "Ensure that Launcher Activity has an exclusive task" into ub-launcher3-burnaby

9 years agoMerge "Avoid crashing if we don't have the READ_EXTERNAL_STORAGE permission" into...
Adam Cohen [Wed, 24 Jun 2015 16:19:22 +0000 (16:19 +0000)]
Merge "Avoid crashing if we don't have the READ_EXTERNAL_STORAGE permission" into ub-launcher3-burnaby

9 years agoEnsure that Launcher Activity has an exclusive task
Adam Cohen [Wed, 24 Jun 2015 01:06:37 +0000 (18:06 -0700)]
Ensure that Launcher Activity has an exclusive task

-> enforce this at the activity level by giving it an empty affinity
-> the system should probably enforce this, so this is a work around for now

issue 21880868

Change-Id: Iaba4d87781c7fc82ee6c2838c013e01081cdbf9d

9 years agoAvoid crashing if we don't have the READ_EXTERNAL_STORAGE permission
Adam Cohen [Tue, 23 Jun 2015 23:56:59 +0000 (16:56 -0700)]
Avoid crashing if we don't have the READ_EXTERNAL_STORAGE permission

issue 22019397

Change-Id: I7d556494569afaeac0ecdd641a089b78663b5563

9 years agoMerge "Code cleanup, WorkspaceStateTransitionAnimation" into ub-launcher3-burnaby
Hyunyoung Song [Tue, 23 Jun 2015 22:05:35 +0000 (22:05 +0000)]
Merge "Code cleanup, WorkspaceStateTransitionAnimation" into ub-launcher3-burnaby

9 years agoCode cleanup, WorkspaceStateTransitionAnimation
Hyunyoung Song [Tue, 23 Jun 2015 22:02:33 +0000 (15:02 -0700)]
Code cleanup, WorkspaceStateTransitionAnimation

Change-Id: I6b82f705f8dfddc507ddd66d5fd8a499cd6f58fd

9 years agoWorking around overscroll issues in AllApps.
Winson Chung [Tue, 23 Jun 2015 02:48:07 +0000 (19:48 -0700)]
Working around overscroll issues in AllApps.

- For the time being, we are going to do custom drawing to ensure that we get the touch
  events in the right order, while still allowing the recycler view to draw the overscroll
  effect on top of the prediction bar.

Bug: 21335369
Change-Id: I6bf64e5c1e9aa634a953223a5decf74942e4fb57

9 years agoMerge "Refactoring fast scroller." into ub-launcher3-burnaby
Winson Chung [Tue, 23 Jun 2015 21:55:52 +0000 (21:55 +0000)]
Merge "Refactoring fast scroller." into ub-launcher3-burnaby

9 years agoUsing a full-bleed background for Set-Wallpaper button
Sunny Goyal [Tue, 23 Jun 2015 21:28:29 +0000 (14:28 -0700)]
Using a full-bleed background for Set-Wallpaper button

Bug: 22007160
Change-Id: I06c4ffe5b5fa4f2c18c06a6e1bf014b328de00fd

9 years agoRefactoring fast scroller.
Winson Chung [Tue, 16 Jun 2015 20:35:04 +0000 (13:35 -0700)]
Refactoring fast scroller.

- Fixing issue with fast scroller not fitting name width.
- Refactoring fast scrolling/scroll bar code out of base recycler view
- Adding animations to fast scroller to match design
- Smooth scrolling when jumping between app rows
- Fixing issue with fast scroller jumping when you first pick it up
- Fixing issue with wrong background paddings being used

Bug: 21874346
Bug: 22031923
Change-Id: I9f011b1f375751f437604b900e95a2942d3f4601

9 years agoMerge "Making the provider column names public" into ub-launcher3-burnaby
Sunny Goyal [Tue, 23 Jun 2015 17:57:23 +0000 (17:57 +0000)]
Merge "Making the provider column names public" into ub-launcher3-burnaby

9 years agoFixing paged view overscroll effect being drawn outside the screen
Sunny Goyal [Mon, 22 Jun 2015 22:11:31 +0000 (15:11 -0700)]
Fixing paged view overscroll effect being drawn outside the screen
bounds when in transposed layout.

Change-Id: I93be6a003b7d28708697990cfae8c7be96f84676

9 years agoMaking the provider column names public
Sunny Goyal [Mon, 22 Jun 2015 20:57:26 +0000 (13:57 -0700)]
Making the provider column names public

Change-Id: Idc85e34aceaaed5a1abb693a8a04d06f9c70b4b4

9 years agoMerge "Using material style overscroll effect for workspace and folders" into ub...
Sunny Goyal [Mon, 22 Jun 2015 18:31:50 +0000 (18:31 +0000)]
Merge "Using material style overscroll effect for workspace and folders" into ub-launcher3-burnaby

9 years agoAdd workspace scrim animation to the state transition to reduce jankiness.
Hyunyoung Song [Sat, 20 Jun 2015 01:03:35 +0000 (18:03 -0700)]
Add workspace scrim animation to the state transition to reduce jankiness.
b/20956087

Note: Will work on creating a separate view for the scrim animation rather
than the drag layer on a separate CL.

Change-Id: Idaced5c6867abe3ed9afa984c885023676b3a141

9 years agoUsing material style overscroll effect for workspace and folders
Sunny Goyal [Wed, 27 May 2015 17:05:28 +0000 (10:05 -0700)]
Using material style overscroll effect for workspace and folders

Bug: 21335369
Change-Id: I53cc6edfa87334b9326f1dedd90c3e2222beade5

9 years agoMerge "Cancelling launcher reload on mcc change" into ub-launcher3-burnaby
Sunny Goyal [Thu, 18 Jun 2015 22:09:39 +0000 (22:09 +0000)]
Merge "Cancelling launcher reload on mcc change" into ub-launcher3-burnaby

9 years agoMerge "Revert resource name to what platform ui automator test defines. b/21923650...
Hyunyoung Song [Thu, 18 Jun 2015 22:07:08 +0000 (22:07 +0000)]
Merge "Revert resource name to what platform ui automator test defines. b/21923650" into ub-launcher3-burnaby

9 years agoRevert resource name to what platform ui automator test defines.
Hyunyoung Song [Thu, 18 Jun 2015 22:05:56 +0000 (15:05 -0700)]
Revert resource name to what platform ui automator test defines.
b/21923650

Change-Id: I26a9405ac0567f856a43d83886df4ece938c11a7

9 years agoresolved conflicts for merge of 78564d4e to ub-launcher3-burnaby
Winson Chung [Thu, 18 Jun 2015 21:26:10 +0000 (14:26 -0700)]
resolved conflicts for merge of 78564d4e to ub-launcher3-burnaby

Change-Id: I9e302b223dff1f238d720026e20b64315b61b293

9 years agoMerge "Moving predicted apps callbacks to use ComponentKey." into ub-launcher3-burnaby
Winson Chung [Thu, 18 Jun 2015 21:10:41 +0000 (21:10 +0000)]
Merge "Moving predicted apps callbacks to use ComponentKey." into ub-launcher3-burnaby

9 years agoUpdating ComponentKey for compatibility with build.
Winson Chung [Thu, 18 Jun 2015 21:01:55 +0000 (14:01 -0700)]
Updating ComponentKey for compatibility with build.

Change-Id: I293177c0eff8c162c2d21bfc2aebf83926c62690

9 years agoCancelling launcher reload on mcc change
Sunny Goyal [Thu, 18 Jun 2015 20:56:59 +0000 (13:56 -0700)]
Cancelling launcher reload on mcc change

Bug: 21022833
Change-Id: Iccd477e7b1638d162e1a500cdb7a52b8d359c657

9 years agoConverting folder name to string before applying it to folder info
Sunny Goyal [Thu, 18 Jun 2015 19:48:51 +0000 (12:48 -0700)]
Converting folder name to string before applying it to folder info

> getText() returns Spannable which can contain text styling

Change-Id: Iacdf9da47b54b5cd290a355152383d75bf3e6836

9 years agoMoving predicted apps callbacks to use ComponentKey.
Winson Chung [Thu, 18 Jun 2015 18:38:42 +0000 (11:38 -0700)]
Moving predicted apps callbacks to use ComponentKey.

Bug: 21270185

Change-Id: If2d9dd77235e7a96de96a1a5441a589ef8a72a7f

9 years agoMerge "Remove DEBUG flag inside WidgetsListAdapter" into ub-launcher3-burnaby
Hyunyoung Song [Thu, 18 Jun 2015 18:33:15 +0000 (18:33 +0000)]
Merge "Remove DEBUG flag inside WidgetsListAdapter" into ub-launcher3-burnaby

9 years agoRemove DEBUG flag inside WidgetsListAdapter
Hyunyoung Song [Thu, 18 Jun 2015 06:08:05 +0000 (23:08 -0700)]
Remove DEBUG flag inside WidgetsListAdapter

Change-Id: I7e5b3162f2b3768caff7ff79fd75567a793a1f45

9 years agoMerge "Widgets model should respect AppFilter." into ub-launcher3-burnaby
Hyunyoung Song [Thu, 18 Jun 2015 04:29:52 +0000 (04:29 +0000)]
Merge "Widgets model should respect AppFilter." into ub-launcher3-burnaby

9 years agoWidgets model should respect AppFilter.
Hyunyoung Song [Thu, 18 Jun 2015 04:12:44 +0000 (21:12 -0700)]
Widgets model should respect AppFilter.

> This pattern is already used in AllAppsList
> mBgWidgetsModel variable cleanup inside LauncherModel.

b/21739736

Change-Id: I03a05064ce3c3e5effb09055af9f4d4de2811c95

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Thu, 18 Jun 2015 03:18:23 +0000 (20:18 -0700)]
Import translations. DO NOT MERGE

Change-Id: I8c0c8c4e5f5e09c5852d31429c8f668d4229cc37
Auto-generated-cl: translation import

9 years agoMerge "Deleting empty folders based on DB state" into ub-launcher3-burnaby
Sunny Goyal [Thu, 18 Jun 2015 03:06:30 +0000 (03:06 +0000)]
Merge "Deleting empty folders based on DB state" into ub-launcher3-burnaby

9 years agoRemoving obsolete strings
Sunny Goyal [Thu, 18 Jun 2015 01:24:52 +0000 (18:24 -0700)]
Removing obsolete strings

Change-Id: I447d5fe819fbec64c4e873ed40dabd4f76bebb4a

9 years agoAdd null-check for workspace/hotseat.
Jun Mukai [Wed, 17 Jun 2015 17:58:59 +0000 (10:58 -0700)]
Add null-check for workspace/hotseat.

I assumed that they are non-null, but reportedly it was wrong.
This method can be invoked before the views are fully initialized.
Also hotseat can be null as far as I see setupViews(), therefore
null-check and 'importance stored' flag check should be done
separately.

Bug: 21779078
Change-Id: I3f17226f887c38adf2b1fb7ee2a016e00ffc0eb4

9 years agoRevert "Removing onInitialize method and creating searchManager in getView"
Sunny Goyal [Wed, 17 Jun 2015 16:09:07 +0000 (16:09 +0000)]
Revert "Removing onInitialize method and creating searchManager in getView"

This reverts commit 6530017bb88179aeb1e3f131738da8f0d7592f36.

Change-Id: I8ecfd21ec854cfe1774f16d2d50c7a0e45dd6865

9 years agoRemoving onInitialize method and creating searchManager in getView
Sunny Goyal [Wed, 17 Jun 2015 01:43:58 +0000 (18:43 -0700)]
Removing onInitialize method and creating searchManager in getView

Change-Id: I3e2620a7839dfd5e6ecb76f24b384eb50e820a94

9 years agoRenaming id to prevent collision.
Winson Chung [Wed, 17 Jun 2015 00:20:56 +0000 (17:20 -0700)]
Renaming id to prevent collision.

Bug: 21878123
Change-Id: If4313d217967310ede7ed3fe11bdbe49311e1a4f

9 years agoMaking UserHandleCompat constructor public
Sunny Goyal [Tue, 16 Jun 2015 23:57:02 +0000 (16:57 -0700)]
Making UserHandleCompat constructor public

Change-Id: Ied4c62964e608d543f0bcf3b232c0df7b57bdf5d

9 years agoMerge "Fixing nullpointer when creating new DB" into ub-launcher3-burnaby
Sunny Goyal [Tue, 16 Jun 2015 23:03:14 +0000 (23:03 +0000)]
Merge "Fixing nullpointer when creating new DB" into ub-launcher3-burnaby

9 years agoMaking resultHandler protected to make it accessible from a subClass
Sunny Goyal [Tue, 16 Jun 2015 22:45:49 +0000 (15:45 -0700)]
Making resultHandler protected to make it accessible from a subClass

Change-Id: Id11118b9f8b9782c44847ac82a03ea36bcb43963

9 years agoFixing nullpointer when creating new DB
Sunny Goyal [Tue, 16 Jun 2015 22:10:36 +0000 (15:10 -0700)]
Fixing nullpointer when creating new DB

LauncherProvider is not ready until the DBHelper is created
Change-Id: Iabd61005892f15fd4a31d882100d87df2b2a7b85

9 years agoUsing component key for app search results
Sunny Goyal [Tue, 16 Jun 2015 18:36:19 +0000 (11:36 -0700)]
Using component key for app search results

Change-Id: Idc610cde340331892a5fabfa8bf952d136675f81

9 years agoMerge "Refactored section names to only draw when there is space." into ub-launcher3...
Winson Chung [Tue, 16 Jun 2015 18:24:23 +0000 (18:24 +0000)]
Merge "Refactored section names to only draw when there is space." into ub-launcher3-burnaby

9 years agoMerge "Fix last bit of WidgetTray jank issue b/21133230" into ub-launcher3-burnaby
Hyunyoung Song [Tue, 16 Jun 2015 18:08:13 +0000 (18:08 +0000)]
Merge "Fix last bit of WidgetTray jank issue b/21133230" into ub-launcher3-burnaby

9 years agoFix last bit of WidgetTray jank issue
Hyunyoung Song [Tue, 16 Jun 2015 17:45:24 +0000 (10:45 -0700)]
Fix last bit of WidgetTray jank issue
b/21133230

Change-Id: Ic198b8d21be1b0f3465cd4efc30a240e3ec4304a

9 years agoRemoving ContentObserver in launcher
Sunny Goyal [Sat, 13 Jun 2015 04:18:53 +0000 (21:18 -0700)]
Removing ContentObserver in launcher

> Using callback insted of using a content observer
> Setting the listener in LauncherAppState to prevent resource leak

Change-Id: Id23a4d5c8812e86178997e536226e09ec3740f84

9 years agoRefactored section names to only draw when there is space.
Winson Chung [Fri, 12 Jun 2015 21:18:55 +0000 (14:18 -0700)]
Refactored section names to only draw when there is space.

- This CL removes all space for section names in both phones
  and tablets.  And when there are no section names, the layout
  will automatically fully merge the sections.

Bug: 20222023
Change-Id: Ic7c751d86f095e5cbd690bfd4f94bb5b00ff8ae4

9 years agoMerge "Refactoring all apps search to support external search bar." into ub-launcher3...
Winson Chung [Mon, 15 Jun 2015 22:43:49 +0000 (22:43 +0000)]
Merge "Refactoring all apps search to support external search bar." into ub-launcher3-burnaby

9 years agoRefactoring all apps search to support external search bar.
Winson Chung [Fri, 5 Jun 2015 00:18:17 +0000 (17:18 -0700)]
Refactoring all apps search to support external search bar.

- Adding support for an external search bar that can be used
  to search a container view.  This adds a new interface
  AllAppsSearchController which manages the external search
  bar.  Each controller will have its own search implementation
  which means that we no longer need a common AppSearchManager
  interface.
- Removing elevation controller as we no longer have a builtin
  search bar in all apps
- Refactoring container view insets so that they behave
  the same in all containers.
- Refactoring apps view to ensure that we only update the number
  of columns with the available width
- Cleaning up LauncherCallbacks interface

Bug: 20127840
Bug: 21494973

Change-Id: I710b8e18196961d77d8a29f0c345531d480936fe

9 years agoMerge "Work profile badge alignment b/21336417" into ub-launcher3-burnaby
Hyunyoung Song [Mon, 15 Jun 2015 20:03:53 +0000 (20:03 +0000)]
Merge "Work profile badge alignment b/21336417" into ub-launcher3-burnaby

9 years agoWork profile badge alignment
Hyunyoung Song [Mon, 15 Jun 2015 19:26:54 +0000 (12:26 -0700)]
Work profile badge alignment
b/21336417

Change-Id: Icd54320fa0d0976cac0ae66d180cc2c99ddd0c1c

9 years agoMerge "Remove inifinite recursion from PagedView" into ub-launcher3-burnaby
Adam Cohen [Mon, 15 Jun 2015 18:21:20 +0000 (18:21 +0000)]
Merge "Remove inifinite recursion from PagedView" into ub-launcher3-burnaby

9 years agoRemove inifinite recursion from PagedView
Adam Cohen [Mon, 15 Jun 2015 18:16:18 +0000 (11:16 -0700)]
Remove inifinite recursion from PagedView

-> thanks adamp@

Change-Id: I36836357f5f194ac69530475b124595174c8b636

9 years agoRead rotation setting correctly from the wallpaper picker.
Rahul Chaturvedi [Mon, 15 Jun 2015 18:09:42 +0000 (14:09 -0400)]
Read rotation setting correctly from the wallpaper picker.

If reading the rotation setting without the multi-process flag, the
WallpaperPickerActivity usually picks up a cached value. Specifying the
multi-process flag during the read fixes this and the wallpaper picker
always has the correct rotation setting.

Change-Id: Ic3639f8cd694674e92c8940b753c6bc30486076d

9 years agoMerge "Fixing regression in fast scroller animation." into ub-launcher3-burnaby
Winson Chung [Sat, 13 Jun 2015 01:14:33 +0000 (01:14 +0000)]
Merge "Fixing regression in fast scroller animation." into ub-launcher3-burnaby

9 years agoFixing regression in fast scroller animation.
Winson Chung [Sat, 13 Jun 2015 01:02:52 +0000 (18:02 -0700)]
Fixing regression in fast scroller animation.

- Fast scroller was not fading out since we were missing the getter
  for the fast scroller alpha (so the initial alpha to animate from
  was wrong).

Change-Id: I2fd13eee3deb084ba37cf4a849e2378f23758391

9 years agoMerge "Fixing issue with click shadow not being drawn correctly." into ub-launcher3...
Winson Chung [Fri, 12 Jun 2015 20:00:46 +0000 (20:00 +0000)]
Merge "Fixing issue with click shadow not being drawn correctly." into ub-launcher3-burnaby

9 years agoFixing issue with click shadow not being drawn correctly.
Winson Chung [Fri, 12 Jun 2015 19:54:31 +0000 (12:54 -0700)]
Fixing issue with click shadow not being drawn correctly.

- It was due to the view parent (prediction bar) which has
  its own translation.

9 years agoDeleting empty folders based on DB state
Sunny Goyal [Wed, 10 Jun 2015 23:00:42 +0000 (16:00 -0700)]
Deleting empty folders based on DB state

> Previously folders were getting deleted based on in-memory
loader state. If for some reason, an item failed to load, we would
delete the folder from DB as well.

Bug: 21354058
Change-Id: I5318ee8a99afa9cafd93ed2b9ef0e155f502a41b

9 years agoMerge "Using content provider to update launcher settings" into ub-launcher3-burnaby
Sunny Goyal [Fri, 12 Jun 2015 19:36:21 +0000 (19:36 +0000)]
Merge "Using content provider to update launcher settings" into ub-launcher3-burnaby

9 years agoMerge "Fixing proguard stripping animation method." into ub-launcher3-burnaby
Winson Chung [Fri, 12 Jun 2015 19:34:10 +0000 (19:34 +0000)]
Merge "Fixing proguard stripping animation method." into ub-launcher3-burnaby

9 years agoMerge "Removing developer options check for app info target" into ub-launcher3-burnaby
Sunny Goyal [Fri, 12 Jun 2015 19:28:34 +0000 (19:28 +0000)]
Merge "Removing developer options check for app info target" into ub-launcher3-burnaby

9 years agoRemoving developer options check for app info target
Sunny Goyal [Fri, 12 Jun 2015 19:25:45 +0000 (12:25 -0700)]
Removing developer options check for app info target

Bug: 21626561
Change-Id: Ic65155ca5b1e5268ccdf2b20295a5067d5d3fa5d

9 years agoFixing proguard stripping animation method.
Winson Chung [Fri, 12 Jun 2015 19:20:34 +0000 (12:20 -0700)]
Fixing proguard stripping animation method.

9 years agoUsing content provider to update launcher settings
Sunny Goyal [Thu, 11 Jun 2015 23:18:39 +0000 (16:18 -0700)]
Using content provider to update launcher settings

> Removing cross process preference file
> Removed broadcast listener management for settings changes
> Defining content provider method to get/set laucnehr preferences

Change-Id: Ida36eac0ab17c1d48fedc9404817a53a89b36c4f

9 years agoMerge "Tying accessibility drag lifecycle to that of dragController" into ub-launcher...
Sunny Goyal [Thu, 11 Jun 2015 18:43:26 +0000 (18:43 +0000)]
Merge "Tying accessibility drag lifecycle to that of dragController" into ub-launcher3-burnaby

9 years agoFix a small UI nit with screen reordering
Adam Cohen [Thu, 11 Jun 2015 01:40:05 +0000 (18:40 -0700)]
Fix a small UI nit with screen reordering

-> When in overview mode, flinging the pages can leave the scroller
   running (invisibly) for much additional time, since the scroller
   fling bounds far exceed the alloawble scroll bounds (in order to
   achieve a hard wall type effect)
-> When this is happening, user couldn't pick up a page for reordering
-> Ended the scroller early in this case to avoid the problem

Change-Id: I8b6f140d9a87bb742e57625e90ca7d76a2158e28

9 years agoam 0c979d1f: Catch TransactionTooLargeException when loading widget provider list...
Hyunyoung Song [Wed, 10 Jun 2015 19:08:49 +0000 (19:08 +0000)]
am 0c979d1f: Catch TransactionTooLargeException when loading widget provider list b/19904873

* commit '0c979d1f2fda45b9d098f9399e1079e6bc22c2b0':
  Catch TransactionTooLargeException when loading widget provider list b/19904873

9 years agoMerge "Fixing crash in restore" into ub-launcher3-burnaby
Sunny Goyal [Wed, 10 Jun 2015 18:36:07 +0000 (18:36 +0000)]
Merge "Fixing crash in restore" into ub-launcher3-burnaby

9 years agoCatch TransactionTooLargeException when loading widget provider list
Hyunyoung Song [Tue, 9 Jun 2015 01:41:04 +0000 (18:41 -0700)]
Catch TransactionTooLargeException when loading widget provider list
b/19904873

Change-Id: Ic0d13ee7513731706bc0f9fde8502acba0899cb3
Note: fix for almonte will be separate due to diff btw the branches..
(cherry picked from commit 3abd5488cca5b06c97251db453a5a6ed61e33ce8)

9 years agoTying accessibility drag lifecycle to that of dragController
Sunny Goyal [Mon, 8 Jun 2015 23:52:41 +0000 (16:52 -0700)]
Tying accessibility drag lifecycle to that of dragController

Bug: 20865291
Change-Id: I1e0aceb20efcf4c32d76a656c499a1a4a5a32a65

9 years agoMerge "Catch TransactionTooLargeException when loading widget provider list b/1990487...
Hyunyoung Song [Tue, 9 Jun 2015 01:53:35 +0000 (01:53 +0000)]
Merge "Catch TransactionTooLargeException when loading widget provider list b/19904873" into ub-launcher3-burnaby

9 years agoCatch TransactionTooLargeException when loading widget provider list
Hyunyoung Song [Tue, 9 Jun 2015 01:41:04 +0000 (18:41 -0700)]
Catch TransactionTooLargeException when loading widget provider list
b/19904873

Change-Id: Ic0d13ee7513731706bc0f9fde8502acba0899cb3
Note: fix for almonte will be separate due to diff btw the branches..

9 years agoMerge "Make WidgetsRecyclerView not crash on MNC support lib" into ub-launcher3-burnaby
Hyunyoung Song [Tue, 9 Jun 2015 01:18:56 +0000 (01:18 +0000)]
Merge "Make WidgetsRecyclerView not crash on MNC support lib" into ub-launcher3-burnaby

9 years agoMake WidgetsRecyclerView not crash on MNC support lib
Hyunyoung Song [Tue, 9 Jun 2015 01:17:13 +0000 (18:17 -0700)]
Make WidgetsRecyclerView not crash on MNC support lib

Change-Id: Ia7bee39752ad0c0b58e74df4507caaf7a3cd8c29

9 years agoMerge "Removing LauncherApplication to enable us to easily catch LauncherAppState...
Sunny Goyal [Mon, 8 Jun 2015 23:05:22 +0000 (23:05 +0000)]
Merge "Removing LauncherApplication to enable us to easily catch LauncherAppState errors" into ub-launcher3-burnaby

9 years agoMerge "Fixing preloaded widget not getting used for animation" into ub-launcher3...
Sunny Goyal [Mon, 8 Jun 2015 22:32:48 +0000 (22:32 +0000)]
Merge "Fixing preloaded widget not getting used for animation" into ub-launcher3-burnaby

9 years agoMerge "Fixing touch feedback clipped on SetWallpaper button" into ub-launcher3-burnaby
Sunny Goyal [Mon, 8 Jun 2015 00:19:29 +0000 (00:19 +0000)]
Merge "Fixing touch feedback clipped on SetWallpaper button" into ub-launcher3-burnaby

9 years agoMerge "Improve AyncTask throughput inside WidgetPreviewLoader" into ub-launcher3...
Hyunyoung Song [Fri, 5 Jun 2015 21:14:32 +0000 (21:14 +0000)]
Merge "Improve AyncTask throughput inside WidgetPreviewLoader" into ub-launcher3-burnaby

9 years agoFixing touch feedback clipped on SetWallpaper button
Sunny Goyal [Fri, 5 Jun 2015 20:41:23 +0000 (13:41 -0700)]
Fixing touch feedback clipped on SetWallpaper button

Bug: 19534312
Change-Id: I97dfd92c560caaf83e525f7e94286a7a77d2ba0b

9 years agoImprove AyncTask throughput inside WidgetPreviewLoader
Hyunyoung Song [Fri, 5 Jun 2015 20:30:19 +0000 (13:30 -0700)]
Improve AyncTask throughput inside WidgetPreviewLoader

b/21133230
> Synchronized block was creating a bottleneck for the AsyncTasks.
> Remove calls that doesn't need to be synchronized outside synchronized block.
> Also removed setAlpha call as after the bottleneck was removed,
Inefficient alpha view usage alert started popping up in traceview.
Due to less jankness, removing the fadein animation doesn't have any
visible effect.

Link to lock congestion visualization:
https://x20web.corp.google.com/~hyunyoungs/no_crawl/traceview/traceview_lockcontention.html

Result: gfx-avg-jank delta = "-1"
Change-Id: If12817df0730f346cdba7e2f38f232eb9a4336c0

9 years agoFixing crash in restore
Sunny Goyal [Fri, 5 Jun 2015 18:14:01 +0000 (11:14 -0700)]
Fixing crash in restore

> LauncherAppState cannot be initialized during restore, as it is not
called from a looper thread.

Bug: 21275736
Change-Id: Ifdb3f9913fa2ee63a7e1566d0c5cfc6f72b4f41e

9 years agoMerge "Ensuring that we use the screen width more optimally in AllApps." into ub...
Winson Chung [Fri, 5 Jun 2015 18:09:35 +0000 (18:09 +0000)]
Merge "Ensuring that we use the screen width more optimally in AllApps." into ub-launcher3-burnaby

9 years agoEnsure that we use the system long press duration when dragging from AllApps.
Winson Chung [Tue, 2 Jun 2015 18:24:28 +0000 (11:24 -0700)]
Ensure that we use the system long press duration when dragging from AllApps.

- Removing some old code out of LauncherAppState

Bug: 21559400
Change-Id: I3c586094efb7ad8a17d2169bc8aaccf6b0df40a2

9 years agoMerge "Code cleanup" into ub-launcher3-burnaby
Sunny Goyal [Fri, 5 Jun 2015 17:40:26 +0000 (17:40 +0000)]
Merge "Code cleanup" into ub-launcher3-burnaby

9 years agoMerge "Updating assets" into ub-launcher3-burnaby
Sunny Goyal [Fri, 5 Jun 2015 17:40:00 +0000 (17:40 +0000)]
Merge "Updating assets" into ub-launcher3-burnaby

9 years agoMerge "Removing unused animation style" into ub-launcher3-burnaby
Sunny Goyal [Fri, 5 Jun 2015 17:39:48 +0000 (17:39 +0000)]
Merge "Removing unused animation style" into ub-launcher3-burnaby

9 years agoEnsuring that we use the screen width more optimally in AllApps.
Winson Chung [Mon, 1 Jun 2015 21:38:24 +0000 (14:38 -0700)]
Ensuring that we use the screen width more optimally in AllApps.

- Fixing issue with prediction bar height being calculated incorrectly
- Fixing issue where the prediction bar divider was not drawn exactly
  between the bar and the first row of apps
- Removing padding to allow scrollbars to reach full height

Bug: 20222023
Bug: 21335377
Change-Id: I2c0614a36e2294d0d6184a6bff4847876ffe971e

9 years agoUpdating assets
Sunny Goyal [Fri, 5 Jun 2015 05:40:14 +0000 (22:40 -0700)]
Updating assets

Bug: 21304080
Change-Id: I26cf435779b477f0961d8e0d56dd6b86b418a3be

9 years agoCode cleanup
Sunny Goyal [Fri, 5 Jun 2015 07:13:25 +0000 (00:13 -0700)]
Code cleanup

> Removing obsolete logging
> Removing unused methods
> Removing resource leak warning due to non-static handler class in launcher

Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb