Commit Graph

4413 Commits

Author SHA1 Message Date
Sunny Goyal 6530017bb8 Removing onInitialize method and creating searchManager in getView
Change-Id: I3e2620a7839dfd5e6ecb76f24b384eb50e820a94
2015-06-16 18:43:58 -07:00
Winson Chung 01d4053436 Renaming id to prevent collision.
Bug: 21878123
Change-Id: If4313d217967310ede7ed3fe11bdbe49311e1a4f
2015-06-17 00:45:04 +00:00
Sunny Goyal 92060267c4 Making UserHandleCompat constructor public
Change-Id: Ied4c62964e608d543f0bcf3b232c0df7b57bdf5d
2015-06-16 16:57:35 -07:00
Sunny Goyal 07973bf253 Merge "Fixing nullpointer when creating new DB" into ub-launcher3-burnaby 2015-06-16 23:03:15 +00:00
Sunny Goyal d730f9d74f Making resultHandler protected to make it accessible from a subClass
Change-Id: Id11118b9f8b9782c44847ac82a03ea36bcb43963
2015-06-16 15:45:49 -07:00
Sunny Goyal b4cbea4ad4 Fixing nullpointer when creating new DB
LauncherProvider is not ready until the DBHelper is created
Change-Id: Iabd61005892f15fd4a31d882100d87df2b2a7b85
2015-06-16 15:18:41 -07:00
Sunny Goyal 5183285847 Using component key for app search results
Change-Id: Idc610cde340331892a5fabfa8bf952d136675f81
2015-06-16 11:41:38 -07:00
Winson Chung b42120300e Merge "Refactored section names to only draw when there is space." into ub-launcher3-burnaby 2015-06-16 18:24:24 +00:00
Hyunyoung Song ed717bcd61 Merge "Fix last bit of WidgetTray jank issue b/21133230" into ub-launcher3-burnaby 2015-06-16 18:08:14 +00:00
Hyunyoung Song e98f4a4d6d Fix last bit of WidgetTray jank issue
b/21133230

Change-Id: Ic198b8d21be1b0f3465cd4efc30a240e3ec4304a
2015-06-16 10:45:24 -07:00
Sunny Goyal 383c507c47 Removing ContentObserver in launcher
> Using callback insted of using a content observer
> Setting the listener in LauncherAppState to prevent resource leak

Change-Id: Id23a4d5c8812e86178997e536226e09ec3740f84
2015-06-16 10:31:43 -07:00
Winson Chung fbc5b18626 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
2015-06-16 00:55:02 +00:00
Winson Chung c332934e27 Merge "Refactoring all apps search to support external search bar." into ub-launcher3-burnaby 2015-06-15 22:43:55 +00:00
Winson Chung ef7f874a88 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
2015-06-15 14:22:47 -07:00
Hyunyoung Song 0fc56db04f Merge "Work profile badge alignment b/21336417" into ub-launcher3-burnaby 2015-06-15 20:04:07 +00:00
Hyunyoung Song 41e3369d5f Work profile badge alignment
b/21336417

Change-Id: Icd54320fa0d0976cac0ae66d180cc2c99ddd0c1c
2015-06-15 12:26:54 -07:00
Adam Cohen be9c52fff1 Merge "Remove inifinite recursion from PagedView" into ub-launcher3-burnaby 2015-06-15 18:21:20 +00:00
Adam Cohen 5b139a5ca7 Remove inifinite recursion from PagedView
-> thanks adamp@

Change-Id: I36836357f5f194ac69530475b124595174c8b636
2015-06-15 11:16:18 -07:00
Rahul Chaturvedi e863fed140 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
2015-06-15 14:09:42 -04:00
Winson Chung 931a2ce85a Merge "Fixing regression in fast scroller animation." into ub-launcher3-burnaby 2015-06-13 01:14:34 +00:00
Winson Chung 4b9f979147 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
2015-06-12 18:02:52 -07:00
Winson Chung 0d95bf1a0c Merge "Fixing issue with click shadow not being drawn correctly." into ub-launcher3-burnaby 2015-06-12 20:00:47 +00:00
Winson Chung 4eda8048c1 Fixing issue with click shadow not being drawn correctly.
- It was due to the view parent (prediction bar) which has
  its own translation.
2015-06-12 12:55:22 -07:00
Sunny Goyal b1622cc30f 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
2015-06-12 12:38:16 -07:00
Sunny Goyal 51cd50d7f1 Merge "Using content provider to update launcher settings" into ub-launcher3-burnaby 2015-06-12 19:36:22 +00:00
Sunny Goyal 3d2e49d7b9 Merge "Removing developer options check for app info target" into ub-launcher3-burnaby 2015-06-12 19:28:35 +00:00
Sunny Goyal d7da55fc32 Removing developer options check for app info target
Bug: 21626561
Change-Id: Ic65155ca5b1e5268ccdf2b20295a5067d5d3fa5d
2015-06-12 12:26:30 -07:00
Sunny Goyal 7779d62308 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
2015-06-12 11:16:20 -07:00
Sunny Goyal e89cf793ab Merge "Tying accessibility drag lifecycle to that of dragController" into ub-launcher3-burnaby 2015-06-11 18:43:27 +00:00
Adam Cohen b2b02b9bd2 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
2015-06-10 18:45:38 -07:00
Sunny Goyal 553a8f6f44 Merge "Fixing crash in restore" into ub-launcher3-burnaby 2015-06-10 18:36:07 +00:00
Hyunyoung Song 0c979d1f2f 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 3abd5488cc)
2015-06-09 19:06:29 +00:00
Sunny Goyal 4547802297 Tying accessibility drag lifecycle to that of dragController
Bug: 20865291
Change-Id: I1e0aceb20efcf4c32d76a656c499a1a4a5a32a65
2015-06-08 19:22:27 -07:00
Hyunyoung Song ece9f02da5 Merge "Catch TransactionTooLargeException when loading widget provider list b/19904873" into ub-launcher3-burnaby 2015-06-09 01:53:36 +00:00
Hyunyoung Song 3abd5488cc 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..
2015-06-08 18:41:04 -07:00
Hyunyoung Song 3114425140 Merge "Make WidgetsRecyclerView not crash on MNC support lib" into ub-launcher3-burnaby 2015-06-09 01:22:41 +00:00
Hyunyoung Song 9e6344212a Make WidgetsRecyclerView not crash on MNC support lib
Change-Id: Ia7bee39752ad0c0b58e74df4507caaf7a3cd8c29
2015-06-08 18:17:13 -07:00
Sunny Goyal 208aba2dfd Merge "Removing LauncherApplication to enable us to easily catch LauncherAppState errors" into ub-launcher3-burnaby 2015-06-08 23:05:31 +00:00
Sunny Goyal be68dcebbb Merge "Fixing preloaded widget not getting used for animation" into ub-launcher3-burnaby 2015-06-08 22:32:49 +00:00
Hyunyoung Song 90429e11e7 Merge "Improve AyncTask throughput inside WidgetPreviewLoader" into ub-launcher3-burnaby 2015-06-05 21:14:32 +00:00
Hyunyoung Song f00d02b254 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
2015-06-05 13:30:19 -07:00
Sunny Goyal 9637364c44 Fixing crash in restore
> LauncherAppState cannot be initialized during restore, as it is not
called from a looper thread.

Bug: 21275736
Change-Id: Ifdb3f9913fa2ee63a7e1566d0c5cfc6f72b4f41e
2015-06-05 11:36:20 -07:00
Winson Chung 6103501fa6 Merge "Ensuring that we use the screen width more optimally in AllApps." into ub-launcher3-burnaby 2015-06-05 18:09:35 +00:00
Winson Chung 7501adf4b7 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
2015-06-05 10:52:57 -07:00
Sunny Goyal 8d8c73b591 Merge "Code cleanup" into ub-launcher3-burnaby 2015-06-05 17:40:27 +00:00
Sunny Goyal 2e6e9b8795 Merge "Updating assets" into ub-launcher3-burnaby 2015-06-05 17:40:01 +00:00
Sunny Goyal 5eae46ce15 Merge "Removing unused animation style" into ub-launcher3-burnaby 2015-06-05 17:39:48 +00:00
Winson Chung 2c6e5ccbcd 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
2015-06-05 09:49:12 -07:00
Sunny Goyal 40b626b930 Updating assets
Bug: 21304080
Change-Id: I26cf435779b477f0961d8e0d56dd6b86b418a3be
2015-06-05 08:47:40 -07:00
Sunny Goyal 4f3e9383eb Code cleanup
> Removing obsolete logging
> Removing unused methods
> Removing resource leak warning due to non-static handler class in launcher

Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb
2015-06-05 00:34:06 -07:00