Commit Graph

9798 Commits

Author SHA1 Message Date
Winson Chung 1612d110b6 Revert "Avoid merging sections across scripts."
This reverts commit 595395d84f.

Change-Id: I44913141f6cb3af29b4509d6b7c317247d1f24c9
2015-06-01 19:20:23 +00:00
Winson Chung d6850edf87 Merge "Avoid merging sections across scripts." into ub-launcher3-burnaby 2015-06-01 18:27:21 +00:00
Winson Chung 595395d84f Avoid merging sections across scripts.
Bug: 20222023
Change-Id: I6f6577112845fec14ae2e9c6e88ff3569bd2f1af
2015-06-01 18:26:55 +00:00
Sunny Goyal d3d8c958a2 Null check in accessibility delegate
bug: 21338696
Change-Id: I00d67e53e03e33b26a8eadb669b60fec47553f26
2015-06-01 10:10:28 -07:00
Hyunyoung Song 8522c80b4a Merge "Start adding unit tests for the invariant device profile / Refactor" into ub-launcher3-burnaby 2015-05-29 22:47:37 +00:00
Sunny Goyal 80aa3ec40f Merge "Fixing screen jumps when performing DnD in rtl mode" into ub-launcher3-burnaby 2015-05-29 22:03:10 +00:00
Sunny Goyal 2b7bf87bba Fixing screen jumps when performing DnD in rtl mode
Bug: 21445825
Change-Id: Ie43d24ce9c8c08dc2c4b3e24692d497760d8cd2d
2015-05-29 15:02:30 -07:00
Hyunyoung Song ac5f6af148 Move fast scrolling logic to BaseRecyclerView
- This change has no effect on actual functionality but to make it easier
for widget tray to inherit the goodness of the 1) fast scroller
functionality 2) unify the scroll look and feel with the all apps view

b/21375339

Change-Id: Ib859b1c3352c0b69f16549ded8f20eb82cf58ba8
2015-05-29 12:00:44 -07:00
Winson Chung 0b06875971 Merge "Ensuring that each CacheEntry has a default title and content description." into ub-launcher3-burnaby 2015-05-28 22:48:50 +00:00
Hyunyoung Song 35c3c7f517 Start adding unit tests for the invariant device profile / Refactor
- removed redundant code to sort the device profiles
- removed DeviceProfileQuery class
- Added a helper method inside the test to easily generate
interpolation graph looks like:
https://docs.google.com/a/google.com/spreadsheets/d/1a1fdemrOqIDixiql77h0anWzUD3GlYfGsbP2FfIhyPM/edit?usp=sharing

Change-Id: Ia4c54a8d59a049c418c08d1b766f07ac6e1d0944
2015-05-28 15:33:40 -07:00
Winson Chung cdefc631f8 Ensuring that each CacheEntry has a default title and content description.
- Also defer adding entry to cache until we know that it has correctly loaded

Bug: 21446070

Change-Id: Ia7aae65ecdc5d9d7741f75d3fb6e7b85daeafeff
2015-05-28 15:25:45 -07:00
Vadim Tryshev 04a9bc4a50 Merge "Setting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED event." into ub-launcher3-burnaby 2015-05-28 22:07:56 +00:00
Vadim Tryshev 7066c1235f Setting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED event.
Change-Id: Idec0e333a0d3c3a0c232d3e2240f18174e0ea88c
2015-05-28 15:06:18 -07:00
Hyunyoung Song eabf77ca96 am a14cb230: (-s ours) Merge "Guard against monkey actor test NPE inside FocusHelper b/19626762" into ub-launcher3-almonte
* commit 'a14cb230dad35fc4ad54dae9f5c5d4f71b89ff12':
  Guard against monkey actor test NPE inside FocusHelper b/19626762
2015-05-28 22:01:35 +00:00
Hyunyoung Song a14cb230da Merge "Guard against monkey actor test NPE inside FocusHelper b/19626762" into ub-launcher3-almonte 2015-05-28 21:49:43 +00:00
Hyunyoung Song 89aeda1b78 Guard against monkey actor test NPE inside FocusHelper
b/19626762

Change-Id: Icaff5931f4076323855f23e7165b0e78a11241b6
2015-05-28 14:45:59 -07:00
Vadim Tryshev 8b80baec06 Merge "Fixing non-scrolling of workspace view after opening/closing AllApps vew. The reason for non-scrolling was excluding the pages view from the accessibility hierarchy by marking it as non-important. So, I just removed the code manipulating [non]importance of the PagedView." into ub-launcher3-burnaby 2015-05-28 21:42:16 +00:00
Vadim Tryshev 7af0d4474f Fixing non-scrolling of workspace view after opening/closing AllApps vew.
The reason for non-scrolling was excluding the pages view from the
accessibility hierarchy by marking it as non-important. So, I just
removed the code manipulating [non]importance of the PagedView.

However, this would make the PagesView accessibility-focusable, which is
undesirable. It becomes focusable because it supports long clicks in "normal"
mode. Since it doesn't support accessibility long clicks (i.e. Overview mode is
fetched NOT via accessibility long-click), I just disabled accessibility
long-clickability, which made PageView non-focusable, and it started to behave
correctly.

Bug: 21281859
Change-Id: I7ab01e5f39cb37c456c961199c27458c9bda1c3d
2015-05-28 14:33:36 -07:00
Sunny Goyal 58376925f9 Fixing page background not displayed when dragging from all apps
> Adding empty page synchronously, instead of waiting for a frame
> Changing launcher state from widgets screen in the same frame, similar to all apps
> Removing DragEnforcer, and moving that logic in side the workspace, disabled by a flag
> Using first page to get page bounds in drag layer, as last page may not have been measured

Change-Id: I172ba4e5ce44648ac55402d49994542c6e10f101
2015-05-27 17:50:35 -07:00
Sunny Goyal 5cc7af12f1 Merge "Removing file IO used for checking configuration change" into ub-launcher3-burnaby 2015-05-28 00:18:01 +00:00
Adam Cohen cadc29c7e5 Merge "Make sure all transition components run on the same thread" into ub-launcher3-burnaby 2015-05-27 21:16:30 +00:00
Adam Cohen 1558893b87 Make sure all transition components run on the same thread
-> The framework circular reveal transition runs on the render
   thread which can cause problems when mixed in an AnimatorSet
   with transitions that don't run on the render thread
-> See issue 17556455

issue 21445293

Change-Id: Ie19c184c55060651e817d426ec83049b06af56ba
2015-05-27 13:55:09 -07:00
Sunny Goyal 1740d901ff Fixing build breakage
Change-Id: I2d8ac9a92d2da3d6b0f52ff8a6e3683b05663aec
2015-05-27 11:14:01 -07:00
Sunny Goyal 5a1f53b306 Removing SmoothPagedView as all its methods are disabled
Change-Id: I83c99bb3d3546693200d64e2233957b4c679e7e6
2015-05-27 10:24:24 -07:00
Jun Mukai bbcf5ac7aa Merge "Introduce LauncherSearchCallback to handle search overlay status." into ub-launcher3-burnaby 2015-05-27 00:41:29 +00:00
Sunny Goyal d70ad0d095 Fixing workspace scrim not being drawn
Change-Id: Iabafe159a577909396d1602a7eda9c508e95cb71
2015-05-26 17:20:07 -07:00
Sunny Goyal f0e1fd9938 Removing file IO used for checking configuration change
> This check was used for flushing the cache, but since the cache
is backed by a DB, this has no effect as same icons are loaded again

Change-Id: Ib7d8a8598c5d225d922e095c899dc11ad06f2b7a
2015-05-26 09:14:49 -07:00
Adam Cohen 8f73d7032e am c3d4553d: (-s ours) [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default
* commit 'c3d4553d462521bc77b719109ea8cf5b5812d471':
  [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default
2015-05-22 23:26:45 +00:00
Adam Cohen c3d4553d46 [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default
issue 21402755

Change-Id: I87ddef08e7b3134c791f769fc279e62d520cd18c
2015-05-22 16:19:42 -07:00
Sunny Goyal d0ad0711db Merge "Decrease elevation for the reveal view." into ub-launcher3-burnaby 2015-05-22 22:26:41 +00:00
Sunny Goyal af80285acc Decrease elevation for the reveal view.
> During the end of allApps animation, the shadow suddenly changes from 15dp to 0

Change-Id: I93bcf1220396b2bda3efea7febc2195ef556938b
2015-05-22 15:26:26 -07:00
Hyunyoung Song 8f10dc21a0 Merge "Fix widget tray crash on screen rotation introduced by ag/694693" into ub-launcher3-burnaby 2015-05-22 21:51:57 +00:00
Hyunyoung Song 9110d485fa Fix widget tray crash on screen rotation introduced by
ag/694693

b/21402209

Change-Id: Idae97fca971d90f5fbba658411491147cb023c8d
2015-05-22 14:49:23 -07:00
Winson Chung 5f4e0fdd2e Moving all apps code into sub package.
- Renaming resources, dimens, etc to be more consistent
- Removing old AppsCustomize resources and other unused code

Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a
2015-05-22 12:21:40 -07:00
Sunny Goyal c6205603ef Creating landscape and portrait device profiles at app initialization
Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
2015-05-22 08:46:41 -07:00
Sunny Goyal 2805e639cd Animating workspace active background change
> Removing workspace_overscroll_drawable_padding which is always 0

Change-Id: I89900738371458a6eb7cbfee215d98b267d6a0b0
2015-05-21 16:26:15 -07:00
Sunny Goyal 0a45b58e10 Merge "Enabling setWallpaper button only if the image was loaded successfully" into ub-launcher3-burnaby 2015-05-21 23:19:24 +00:00
Adam Cohen 2e6da1539b Refactoring DeviceProfile
-> Pulling out the parts of device profile which can (and need to be)
   initialized and accessed without access to an Activity context,
   ie. the invariant bits.
-> The invariant bits are stored in InvariantDeviceProfile which is
   initialized statically from LauncherAppState.
-> The DeviceProfile contains the Activity context-dependent bits,
   and we will create one of these for each Activity instance, and
   this instance is accessed through the Launcher activity.
-> It's possible that we can continue to refactor this such that
   all appropriate dimensions can be computed without an Activity
   context (by only specifying orientation). This would be an
   extension of this CL and allow us to know exactly how launcher
   will look in both orientations from any context.

Sets the stage for some improvements around b/19514688

Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892
2015-05-21 16:16:40 -07:00
Sunny Goyal 8abbd29ca3 Enabling setWallpaper button only if the image was loaded successfully
Bug: 20187333
Change-Id: I1b738a06499d20facbc4bccb1e6247086a45b686
2015-05-21 16:14:08 -07:00
Hyunyoung Song a9d012c6e6 Merge "Introduce scrollbar in widget tray" into ub-launcher3-burnaby 2015-05-21 23:00:18 +00:00
Winson Chung 370afe8a04 Merge "Tweaking method name." into ub-launcher3-burnaby 2015-05-21 22:46:07 +00:00
Winson Chung 7eb9925491 Tweaking method name.
Change-Id: I2f4f9dc58c8148059914a106526995e80a82376f
2015-05-21 15:45:24 -07:00
Winson Chung 4fabf1dd41 Merge "Fixing crash in previous CL." into ub-launcher3-burnaby 2015-05-21 22:43:45 +00:00
Hyunyoung Song dd721f8633 Introduce scrollbar in widget tray
b/21270754

Change-Id: I82dd87193f0ed5822f8cd75ef0c785057f949015
2015-05-21 15:31:42 -07:00
Sunny Goyal c57bb9b113 Merge "Icons are not updated to TYPE_APPLICATION during restore" into ub-launcher3-burnaby 2015-05-21 22:26:27 +00:00
Winson Chung db0b572862 Fixing crash in previous CL.
- Shouldn't be referencing mApps before it is set.
2015-05-21 14:39:54 -07:00
Sunny Goyal aa78b3dea3 Merge "Preventing overdraw. Drawing background directly at the window, instead of the rootview." into ub-launcher3-burnaby 2015-05-21 20:34:28 +00:00
Sunny Goyal 5c97f51fd9 Icons are not updated to TYPE_APPLICATION during restore
> Use low res only for app shortcuts
> Running icon migration after restore
> Running icon migration again for all users
> Deduping shortcuts added from widget tray

Bug: 20945600
Change-Id: I3bb47545fdd9832510069026fbae8966d2311cc1
2015-05-21 13:34:07 -07:00
Winson Chung 3abcd5ba1b Cleaning up some app model code.
- Preventing extra sorting when adding/updating apps
- Preventing extra logic when filtering apps
- Fixing overlapping prediction bar when all predictions are removed
- Fixing crash when retrieving section names for AppInfos whose titles
  have been updated, but updateApps has not yet been called.

Change-Id: I1da468b0fd5c5cc404b6a5e6146a268fefeca267
2015-05-21 20:33:01 +00:00
Sunny Goyal 324d78358c Merge "Breaking icon update task so that it doesn't block worker thread" into ub-launcher3-burnaby 2015-05-21 20:31:37 +00:00