OSDN Git Service

android-x86/packages-apps-Trebuchet.git
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

9 years agoRemoving LauncherApplication to enable us to easily catch LauncherAppState errors
Sunny Goyal [Fri, 5 Jun 2015 04:19:02 +0000 (21:19 -0700)]
Removing LauncherApplication to enable us to easily catch LauncherAppState errors

Change-Id: I56e956067692e5b9c4719c5e08b8f558e6011a60

9 years agoMerge "Preventing overdraw in custom content screen" into ub-launcher3-burnaby
Sunny Goyal [Thu, 4 Jun 2015 23:47:34 +0000 (23:47 +0000)]
Merge "Preventing overdraw in custom content screen" into ub-launcher3-burnaby

9 years agoPreventing overdraw in custom content screen
Sunny Goyal [Thu, 4 Jun 2015 23:29:51 +0000 (16:29 -0700)]
Preventing overdraw in custom content screen

> Assuming customcontent screen is opaque, setting scrim alpha to 0
when the screen is fully visible

Bug: 21584384
Change-Id: Ifa95a10d880532f59573090673e90a87c7edba9b

9 years agoUse a broadcast receiver instead of a settings observer.
Rahul Chaturvedi [Tue, 2 Jun 2015 01:26:41 +0000 (21:26 -0400)]
Use a broadcast receiver instead of a settings observer.

Settings observer doesn't work if a setting is modified in another
process, hence we instead register a receiver which listens for a signal
from the settings process that the rotation preference has changed.

Change-Id: I570e3c67bb64a32347e84ca00a8ac31d9010eac3

9 years agoUpdating widget list when iconCache updates
Sunny Goyal [Thu, 4 Jun 2015 22:19:31 +0000 (15:19 -0700)]
Updating widget list when iconCache updates

> Fixing bug where items were not getting removed from the memcache
> Fixing bug where package entries were not getting removing because
of component mismatch.

Bug: 21612532
Change-Id: Ie56f3272f7fb7e1a37c5ff9bfa523d814edc1a02

9 years agoMerge "Adding back icon size dimen" into ub-launcher3-burnaby
Sunny Goyal [Thu, 4 Jun 2015 19:37:45 +0000 (19:37 +0000)]
Merge "Adding back icon size dimen" into ub-launcher3-burnaby

9 years agoAdding back icon size dimen
Sunny Goyal [Thu, 4 Jun 2015 19:19:51 +0000 (12:19 -0700)]
Adding back icon size dimen

Bug: 21638256
Change-Id: I522a8e59e63e4a49a087e4fb3aac102595ea6818

9 years agoMerge "Consistent scrolling experience for All apps and widget tray" into ub-launcher...
Hyunyoung Song [Thu, 4 Jun 2015 18:39:44 +0000 (18:39 +0000)]
Merge "Consistent scrolling experience for All apps and widget tray" into ub-launcher3-burnaby

9 years agoConsistent scrolling experience for All apps and widget tray
Hyunyoung Song [Thu, 4 Jun 2015 18:37:46 +0000 (11:37 -0700)]
Consistent scrolling experience for All apps and widget tray

b/21375339

Change-Id: I8362b3ca94b7c4e75932d42cd09a989e0e3919c0

9 years agoFixing different bitmap sizes in different orientations
Sunny Goyal [Fri, 22 May 2015 19:25:45 +0000 (12:25 -0700)]
Fixing different bitmap sizes in different orientations

> Using a single bitmap icon size
> Picking up appropriate density for satisfy the required icon size
> Fixing some icon size assumptions during icon animations

Bug: 19514688
Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585

9 years agoMerge "Fixing issue with hotseat being on the wrong side of the screen in RTL." into...
Winson Chung [Wed, 3 Jun 2015 19:03:12 +0000 (19:03 +0000)]
Merge "Fixing issue with hotseat being on the wrong side of the screen in RTL." into ub-launcher3-burnaby

9 years agoFixing issue with hotseat being on the wrong side of the screen in RTL.
Winson Chung [Wed, 3 Jun 2015 18:27:26 +0000 (11:27 -0700)]
Fixing issue with hotseat being on the wrong side of the screen in RTL.

Bug: 21499466

Change-Id: I566cd89dfb855f89f4e68bf56e48bf99204b11ab

9 years agoMerge "Stylus support: handling drag n drop for widgets" into ub-launcher3-burnaby
Mady Mellor [Wed, 3 Jun 2015 16:46:42 +0000 (16:46 +0000)]
Merge "Stylus support: handling drag n drop for widgets" into ub-launcher3-burnaby

9 years agoMerge "Stylus support: creating and setting listeners for stylus button press" into...
Mady Mellor [Wed, 3 Jun 2015 16:26:34 +0000 (16:26 +0000)]
Merge "Stylus support: creating and setting listeners for stylus button press" into ub-launcher3-burnaby

9 years agoMerge "Adding context for app launches." into ub-launcher3-burnaby
Winson Chung [Tue, 2 Jun 2015 23:59:42 +0000 (23:59 +0000)]
Merge "Adding context for app launches." into ub-launcher3-burnaby

9 years agoAdding context for app launches.
Winson Chung [Fri, 29 May 2015 00:33:40 +0000 (17:33 -0700)]
Adding context for app launches.

Bug: 21492784
Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10

9 years agoStylus support: creating and setting listeners for stylus button press
Mady Mellor [Tue, 2 Jun 2015 22:35:07 +0000 (15:35 -0700)]
Stylus support: creating and setting listeners for stylus button press

This updates almost(*) all locations that use a long press listener to
also set a custom touch listener that recognizes the stylus button press
action.

The stylus button press action is: when a stylus touches a view while the
primary stylus button is pressed which may occur on a DOWN or MOVE event.

*The location this is *not* enabled for is: Longpress to enter "overview"
mode -- this isn't really a selection or drag n drop action; it is also
easy to accidentally do this while using the stylus gesture to drag n drop
items which is not an ideal interaction. Also not set for the "cling" that
demonstrates this.

Bug: 20430722
Change-Id: I9343f143261a7b4fada9afca28b8a11a60dbecca

9 years agoFixing preloaded widget not getting used for animation
Sunny Goyal [Tue, 2 Jun 2015 01:37:32 +0000 (18:37 -0700)]
Fixing preloaded widget not getting used for animation

> The preloaded widget was being set in a different instance of
PendingAddWidgetInfo and was never getting used for animation.

bug: 20699153
Change-Id: Iaec13640e49c66993b4695e4a52dc3a3a2133fb2

9 years agoStylus support: handling drag n drop for widgets
Mady Mellor [Tue, 2 Jun 2015 22:02:14 +0000 (15:02 -0700)]
Stylus support: handling drag n drop for widgets

This alters the widget host view code to consider stylus button presses
allowing the user to pick up widgets with a stylus button press, and drop
them by releasing the button.

Bug: 20430722
Change-Id: I359f72bd80016f4b313aab1325cc92d7c6fd2a8c

9 years agoRemove use of API level 19 classes.
Winson Chung [Tue, 2 Jun 2015 17:29:30 +0000 (10:29 -0700)]
Remove use of API level 19 classes.

Bug: 21583308