Commit Graph

9764 Commits

Author SHA1 Message Date
Winson Chung 8f1eff7b6c Adding context for app launches.
Bug: 21492784
Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10
2015-06-02 16:58:30 -07:00
Mady Mellor ef044dd380 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
2015-06-02 15:35:07 -07:00
Sunny Goyal 5b9ebcab3c 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
2015-06-02 15:20:03 -07:00
Mady Mellor 770f7c5907 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
2015-06-02 15:02:36 -07:00
Winson Chung 59caa60222 Remove use of API level 19 classes.
Bug: 21583308
2015-06-02 18:31:01 +00:00
Sunny Goyal 316490e636 Removing some synthetic method creation
> Make package-private and @Thunk all private methods and constructors accessed from inner classes.

Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
2015-06-02 10:04:59 -07:00
Sunny Goyal 6ff6f6d649 Removing unused animation style
Change-Id: Ib8031eb9604cb2c10d4ac07e22b94772f7967a89
2015-06-01 22:02:54 -07:00
Sunny Goyal c1cd23b4a7 Build fix: Removing FastOutSlowIn interpolator
Change-Id: Ia84445285d013fe8da3c895f5264f329f2403890
2015-06-01 17:16:22 -07:00
Sunny Goyal a07c2f5c80 Folder UI fixes
> Fixing top padding (b/21304523)
> Alinging the label and page indicators to the icons
> Fixing folder label alingment in RTL (b/21445821)
> Updating footer animation (b/21336853)

Bug: 21304523, 21445821, 21336853
Change-Id: I2cf3a48c76653b19437b31252d6ee559ce798094
2015-06-01 16:15:54 -07:00
Winson Chung 761e820ae2 Enabling resumeWhilePausing for the Launcher activity.
Bug: 21342101
2015-06-01 23:04:33 +00:00
Sunny Goyal 5683f87172 Adding an asynchronous search interface for apps search
Change-Id: Ib09df0a3d587dc60ed888ddbd0edf058e4a1cc3e
2015-06-01 15:58:29 -07:00
Winson Chung dd5814c471 Fixing crash on tablets from merging scheme changes. 2015-06-01 22:43:32 +00:00
Rahul Chaturvedi e4ca4a9ca1 Merge "Add the Allow Rotation setting to Launcher3." into ub-launcher3-burnaby 2015-06-01 20:56:15 +00:00
Rahul Chaturvedi 7fc77cad3d Add the Allow Rotation setting to Launcher3.
This CL adds a Settings activity along with the code needed to provide
a "Allow Rotation" setting to all phones and tablets. This setting is
set to false for phones and true for tablets. On changing the setting
from unlocked to locked, the launcher (and the Settings activity)
will get locked to the orientation the user was in when he disabled
"Allow Rotation". This is consistent with how the natural rotation
feature of Android works.

Change-Id: I8a1c59d1fa0bb9262530cad96e0a9bdbab0d9344
2015-06-01 16:50:50 -04:00
Winson Chung 51b1c83946 Avoid merging app sections across scripts.
Bug: 20222023
Change-Id: I171d75a33694fc2cb347a32cff209f64fe3bf7c3
2015-06-01 13:25:31 -07:00
Winson Chung 585b764ae2 Merge "Revert "Avoid merging sections across scripts."" into ub-launcher3-burnaby 2015-06-01 19:20:49 +00:00
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