Commit Graph

279 Commits

Author SHA1 Message Date
Kevin 3e98796189 Add layout animation for Recents Go
Add a layout animation where views fade in upward in a cascade and play
it every time the user goes to Recents.

Bug: 114136250
Test: Go to Recents and see cascade animation
Change-Id: Ia6fdd344f0bfb46c4d507e50f278a86a4432c2b6
2019-04-05 12:20:55 -07:00
Kevin fc6781992d Control logic for putting up loading UI
This CL introduces the logic to put up and bind loading task views while
the first phase of loading occurs (i.e. loading the number and order of
recents items).

Bug: 114136250
Test: Go to recents, see tasks loading
Change-Id: I59bdc0fccc7f309ea4cded175c04a464b5a3665e
2019-04-05 11:04:10 -07:00
Winson Chung 41d58f7100 Add launcher logging of back button
Bug: 127848641
Test: adb shell setprop log.tag.UserEvent VERBOSE, then hit back
Change-Id: I020738280d2e51a8a192e577baf48c0b092f22f6
(cherry picked from commit df7d00328c)
2019-04-03 22:41:39 +00:00
Sunny Goyal 65f2396ecd Merge "Adds the ability for Launcher3 to respond to QSB alpha change requests." into ub-launcher3-master 2019-04-03 20:20:12 +00:00
Sunny Goyal 27211592e1 Removing unused import in TouchInteractionService
Change-Id: I207e56189bbdb0105430a47f6a9069c6382354b2
2019-04-03 11:03:14 -07:00
Govinda Wasserman 24e489e5a3 Adds the ability for Launcher3 to respond to QSB alpha change requests.
Test: Tested locally
BUG:124063782
Change-Id: I8c4bfaa62d9608fcfffff5e30b2913f3a6fb2f75
(cherry picked from commit 827f0807d3)
2019-04-03 17:33:55 +00:00
TreeHugger Robot 3388e34799 Merge "Disable input while animating clear all on Go" into ub-launcher3-master 2019-04-02 00:41:55 +00:00
Kevin 1497112599 Disable input while animating clear all on Go
Prevent janky things from happening by preventing user input from going
through while the clear all animation is occurring.

Bug: 114136250
Test: Hit clear all => try to clear all / tap task, nothing happens
Change-Id: If7bd6b54e4b1b8185fafda990561973ea17b9648
2019-04-01 17:04:31 -07:00
TreeHugger Robot 3b4794f6d2 Merge "Boost correct layer for Recents Go transition" into ub-launcher3-master 2019-04-01 21:14:34 +00:00
TreeHugger Robot 639598245c Merge "Hook up Go recents view API to recents activity" into ub-launcher3-master 2019-04-01 21:06:46 +00:00
Kevin 552071b5f4 Boost correct layer for Recents Go transition
For transition from app to fallback recents, the apps were on the same
Z-layer causing both to show up in the animation. We should instead
boost the closing app so that it's visually on top as it shrinks down.

Bug: 114136250
Test: Press overview in app to go to recents, behaves as expected
Change-Id: Iaca1e4fc1486721468a5bfffb1d139259d48739f
2019-04-01 13:00:57 -07:00
Kevin b6320aeeb6 Hook up Go recents view API to recents activity
Hook up onBeginTransitionToOverview for fallback recents as well by
hooking it up to activity start.

Bug: 114136250
Test: Go to recents for fallback recents
Change-Id: I5445bce13ecf7c0dbc2f2b3ff0d8a0aee1449ae1
2019-04-01 12:06:43 -07:00
Kevin b2c73b43a1 Fix crash on fallback recents Go activity
Recents Go would crash when attempting to touch the fallback recents
activity since it's based off the base dragging activity in launcher
which assumes some touch controllers are initialized. As we leave
all touch input to hooks on the views themselves, we do not need touch
controllers and initialize an empty list instead.

Bug: 114136250
Test: Launch fallback recents activity, touch around
Change-Id: Ic136ace6f968d8c469c6f300daf4ee28fbde5e69
2019-04-01 11:20:56 -07:00
Sunny Goyal 5743f8635b Making navigation mode listener a singleton so that the change is dispatched
everywhere synchronously.

Change-Id: Iee8c5957d78dfad3fb03e814de0367adcaa0c98b
2019-03-29 09:36:45 -07:00
TreeHugger Robot a978f4d76e Merge "Add clear all animation to Recents Go." into ub-launcher3-master 2019-03-29 02:14:50 +00:00
TreeHugger Robot 7c1d69e515 Merge "Show ASAP for Recents Go and load content after" into ub-launcher3-master 2019-03-29 02:07:01 +00:00
Kevin b589241fd6 Show ASAP for Recents Go and load content after
Recent UX discussion led to decision to show as soon as we have the list
and order and then load the content in after as soon as it comes. This
introduces API in TaskListLoader to facilitate this and default values
for the view when the content is not yet loaded.

Bug: 114136250
Test: Go to recents, see content load in
Change-Id: I6766cf014e3de78894353614157dbc8798031c2f
2019-03-28 18:10:52 -07:00
Tony e4c2e2b86c Add QuickSwitchTouchController on home
- Added QuickSwitchState, which we animate to when swiping right
  on the nav bar from NORMAL state
- Task launches when the state transition to QuickSwitchState ends

Bug: 126596417
Change-Id: Id66650401d817703fc6d044fb26a25cccbc07e11
2019-03-28 15:09:25 -05:00
Tony e06fef45a4 Move some classes to packages
Added states/ and touchcontrollers/ packages

Change-Id: I8d59c47770c24c9edd1b7ce879e6a80ca8b88c71
2019-03-27 19:45:04 -05:00
Tony 1787ee9596 Peek overview on motion pause, then animate fully on touch up
Add AnimationComponents.ATOMIC_OVERVIEW_PEEK_COMPONENT, and rename
previous ATOMIC_COMPONENT to ATOMIC_OVERVIEW_SCALE_COMPONENT.

When SWIPE_HOME is enabled:
- Overview lives to the left of Workspace, which is encoded in
  LauncherState.NORMAL.getOverviewScaleAndTranslation().
- Create atomic animation based on ATOMIC_OVERVIEW_PEEK_COMPONENT
  and OVERVIEW_PEEK state when swiping and holding from home screen.

Bug: 111926330
Change-Id: Iab6dbef7238dae15b3036d4b2a026b781eee6b4b
2019-03-27 19:45:04 -05:00
Tony bc23440d73 Add translationX to overview state
States return ScaleAndTranslation instead of float[].

Also separate overview translate interpolator from overview scale interpolator.

Change-Id: I5e65dde3f436055ff5e7f5736f1a4b712377b9cb
2019-03-27 14:36:48 -05:00
Kevin 5bf71b2268 Add clear all animation to Recents Go.
Add clear all animation where task views fade out to the right and the
view fades to home.

Bug: 114136250
Test: Hit clear all
Change-Id: I5a3336da5b724ce19d9ef854efde0dd1f654941a
2019-03-22 16:18:28 -07:00
Kevin c977ea9a3c Add overview button handling to Go recents.
Add the same overview button handling as in the original launcher.
Specifically, pressing overview on recents will launch the next
appropriate task (e.g. the next most recent task if you came from an
app).

Bug: 114136250
Test: Go to recents from launcher, press overview => launch task.
Test: Go to recents from app, press overview => launches next task
Change-Id: I946974b4c2b65b6d0f212d8e8c0816983386d952
2019-03-22 12:53:02 -07:00
Kevin 969e7a6c57 Rename task input controller.
The TaskInputController class doesn't need to be tightly coupled with
the actual input method, so we should rename it and the methods to
correspond to the actual logic. For example, both tapping a task and
pressing the overview button on recents should launch a task and should
both use this logic.

Bug: 114136250
Test: Launch tasks, clear tasks, clear all
Change-Id: If4f7f1d6ee9b05ffaf65cb13df633679cc8efcbe
2019-03-21 18:00:44 -07:00
Kevin fefe8b6d0e Add clear all button to Recents Go
Add a button to clear all tasks to the recents Go layout and hook it up
to the model.

Bug: 114136250
Test: Open recents, hit clear all
Change-Id: Id67310ce88053528d372e4dc21e2b011ed957646
2019-03-21 15:04:21 -07:00
TreeHugger Robot d6585350d0 Merge "Add recents launch animation to Recents Go" into ub-launcher3-master 2019-03-20 21:57:49 +00:00
Kevin 72114efef6 Add recents launch animation to Recents Go
We use the basic clip reveal animation to animate from the task
thumbnail view to the opening app.

Bug: 114136250
Test: Tap task from recents
Change-Id: Id582385fc022c75ee322beebdc6cf7a0f209e720
2019-03-20 14:47:32 -07:00
Tony bfc9dde03e Replace translationYFactor with just translationY
Now that we don't have quick scrub, the only state that has a non-zero translation is all apps,
which just uses that to have a slight parallax. This is much simpler to define in terms of pixels
like other states do.

Change-Id: I108c8505d85591399256b3475f7566ff51e2c5ad
2019-03-20 15:36:31 -05:00
Kevin 502847f7eb Add app to overview anim for Recents Go.
This CL adds the first iteration of window animation to go from
the app back to recents provided that the view is ready to be
visible to the user.

Bug: 114136250
Test: Go to recents, launch app, press overview to go back to recents
Change-Id: Ic0567e7c87fa964bdad25d07eca61b78407a9ff5
2019-03-18 17:15:15 -07:00
TreeHugger Robot 9b4c82cbf9 Merge "Add activity interface to Recents Go view" into ub-launcher3-master 2019-03-15 22:19:21 +00:00
Kevin 5163b58d52 Add activity interface to Recents Go view
Add an interface for recents to activity logic that can be set on the Go
recents view. This CL includes a method for the logic that should occur
when leaving recents due to having no tasks remaining.

As the view has no knowledge of the containing activity (could be
Launcher or could be a separate activity), this interface must be set
externally.

Bug: 114136250
Test: Remove all tasks, see that it goes to home when l3goIconRecents is
the default launcher
Change-Id: I110abab49c22e245b98a1f9b91b0b0f052886098
2019-03-15 15:09:38 -07:00
vadimt d64b4f44da Switching swipe-up to overview to using test info provider
Also moving test provider to Quickstep to have access to the new info;
and now Launcher3 doesn't have it.

Bug: 123904290
Change-Id: I653376610e83839d102beb9c0604950dd314e8ba
2019-03-15 11:42:06 -07:00
TreeHugger Robot 65b1cdbdea Merge "Fade to empty view when no tasks for Recents Go" into ub-launcher3-master 2019-03-13 22:55:15 +00:00
Kevin 3cb12c8d20 Fade to empty view when no tasks for Recents Go
This CL adds a view for when there are no tasks and fades into/out of it
appropriately based off changes to the adapter.

Bug: 114136250
Test: Add task, remove task, see empty view shows up properly.
Change-Id: I47d0bbfb19d56f5f0de5bec3c0ac2b5cfb63253f
2019-03-13 15:46:41 -07:00
Sunny Goyal 1e6641fc74 Merge "Removing fade animation on swipe up" into ub-launcher3-master 2019-03-13 22:05:27 +00:00
Kevin 100e1263e2 Add thumbnails to the task view.
This CL adds thumbnails to the task view so that the labels are next to
a combined view with the thumbnail to the left and the icon at the
bottom right.

Due to the way launcher creates shadows on icons, the icons are actually
smaller than desired, so there need to be further changes to determine
the appropriate scale in order to have the bottom of the icons be flush
with the snapshot's bottom.

Bug: 114136250
Test: Launch l3GoIconRecents, see thumbnails + icon
Change-Id: Ief1cf54634544b9e310c68588998901871efda44
2019-03-13 12:59:39 -07:00
Sunny Goyal 58ddac1d09 Removing fade animation on swipe up
Fade animation is no longer required as the transform is also handled on
the main thread. So we will get the RecentsAnimaiton always after Launcher
has drawn

Change-Id: Ieb05406c9a5b9132b0518155bdbda16c1f73a6ec
2019-03-12 16:24:05 -07:00
Kevin 013af455b1 Implement swipe to delete on Recents Go
Introduce a ItemTouchHelper.Callback implementation that hooks up remove
logic to swiping right on task items. Additionally, tighten the
modification access to the task list in TaskListLoader so it is harder
to mis-use.

Bug: 114136250
Test: Removed app via swiping
Change-Id: I9b6e2783d1f6d56e655e9b7ffa9af85328f98159
2019-03-12 15:10:22 -07:00
Kevin 1ae97d81f6 Add TaskInputController for Recents Go
Add TaskInputController, a class handling input logic for the Recents Go
view. This CL hooks up the tap to launch logic with swiping + clear all
to be added in a later CL.

Bug: 114136250
Test: Build Launcher3IconRecentsGo and tap apps; see that they launch
task
Change-Id: I03e14a6f66307b9c6239cdeaec95d09f160fa3e0
2019-03-11 15:05:52 -07:00
TreeHugger Robot 8f8fae4b46 Merge "Add task item view for Recents Go." into ub-launcher3-master 2019-03-09 02:20:05 +00:00
Kevin c0a67af456 Add task item view for Recents Go.
Add a task item view for the recycler view to inflate when task data
updates. Currently, the adapter only binds the icon and label.
Thumbnails will be handled in a separate CL.

Bug: 114136250
Test: Manual test Launcher3GoIconRecents
Change-Id: Iaff2001fbbf0a3fc6f5781f90b336bee43f9076e
2019-03-08 17:42:53 -08:00
TreeHugger Robot 5f094590f2 Merge "Add task thumbnails to the Recents Go loader." into ub-launcher3-master 2019-03-09 00:41:56 +00:00
Kevin b9ebd812a4 Add task thumbnails to the Recents Go loader.
This CL adds thumbnails to the content loading for Recents Go so that
they are fully loaded before recents show. We utilize the underlying
recents model thumbnail cache to make the loading faster.

Bug: 114136250
Test: Build Launcher3GoIconRecents
Change-Id: Ib21f617e83d307621364c2eeb6fef84aad49814b
2019-03-08 12:07:01 -08:00
Sunny Goyal 826405d095 Merge "Using the new contract for some systemUI constants" into ub-launcher3-master 2019-03-06 21:40:12 +00:00
Sunny Goyal b7dafa6a04 Using the new contract for some systemUI constants
Change-Id: I1a0351bc9b1ac5b8fe866a92c1bda93126189543
2019-03-06 12:32:24 -08:00
Matthew Ng 04d58e841f Do not consume motion events when there is no assistant available
Bug: 112934365
Test: manual
Change-Id: If9254d974a34772357ce32d5ba2734db5a173f6b
2019-03-06 19:43:29 +00:00
Kevin 45f81fd732 Add loader for recents Go.
This CL introduces a loader specific to recents Go that utilizes the
underlying recents model already built in. The class is responsible for
maintaining the data source for the recycler view and also loading the
task list and content. We also provide a hook into the recents view
class to call a load when the transition to recents starts.

Bug: 114136250
Test: Build Launcher3GoIconRecents
Change-Id: I22ce6f767852b0f37961e2fd06dfcb6475c91235
2019-03-01 11:46:51 -08:00
Kevin 5a3f7ae764 Load app content descriptions for Go recents.
Recents Go with icons will use the app's title description as the app
label, so we need this to actually load when we load the task's content
even if accessibility is disabled. This CL puts this behind a static
flag only set to true in recents Go code.

Bug: 114136250
Test: Log that titles/labels are appropriately fetched
Change-Id: I4fe7d8758b3141695a82c0677cec97686c977934
2019-03-01 10:43:00 -08:00
Kevin 1c2b6c4594 Add recycler view for recents Go
Add recycler view to view hierarchy for recents Go to hold the list of
recent tasks.

Bug: 114136250
Test: Manual test, see view in place
Change-Id: I255bb4a7737726b0e211b52aec3f2fb8f4723513
2019-02-27 13:05:42 -08:00
Kevin 34cf2616b5 Fix issue keeping Go recents view GONE
Go recents view was always GONE before. This is because Go was missing
logic in its CONTENT_ALPHA property to set visibility on appropriate
alpha changes. This CL fixes this.

Bug: 114136250
Test: Manual test and see the view is there
Change-Id: I45fea6d695b9b3154be9d2e6fae25ca8a8aa288e
2019-02-26 14:34:26 -08:00
Kevin 0fcd22fc66 Add TaskAdapter to recents Go.
This CL adds a recycler view adapter for tasks to manage the item
control logic. The data source itself and view hierarchy is planned to
be added in future CLs.

Bug: 114136250
Test: Build l3GoIconRecents
Change-Id: I72d4f9df68d17fd745947d36522cde342ea58317
2019-02-26 13:30:14 -08:00
Sunny Goyal b04dabf7ef Fixing Launcher3QuickStepGoIconRecents build
Change-Id: Ieef3872fbe0ba3e6412fe6fcbfc4e20ac785ab70
2019-02-26 09:43:50 -08:00
Kevin eee12ee4cf Stub out most of TouchInteractionService for Go
Most of TouchInteractionService is not used in Go since we don't support
a lot of the gestures, so this code swaps the file and stubs out
everything except the atomic overview commands for Go only.

Bug: 114136250
Test: Manual test NexusLauncher, l3GoIconRecents
Change-Id: I449746d01d3bbf619663399deb9600f0e4ecc000
2019-02-25 13:39:42 -08:00
TreeHugger Robot 517163e0ae Merge "Split FallbackActivityControllerHelper for Go" into ub-launcher3-master 2019-02-22 23:27:31 +00:00
Kevin 6fb2b78320 Split FallbackActivityControllerHelper for Go
This splits FallbackActivityControllerHelper for Go and non-Go depending
on the underlying recents implementation. We also introduce a
GoActivityControllerHelper implementation as a base class to share the
stubbed methods for the Go ActivityControlHelper implementations.

Bug: 114136250
Test: Manual test NexusLauncher, l3GoWithIconRecents
Change-Id: I8a061bb83a851dd1d9988af17194f3e4aed24bb0
2019-02-22 14:41:27 -08:00
Kevin ef8a17b1d0 Split OverviewCommandHelper for Go recents.
This splits OverviewCommandHelper between a Go and non-Go version with
functionality differing depending on the underlying recents
implementation.

Bug: 114136250
Test: Build NexusLauncher, l3goWithQuickstep, l3goIconRecents
Change-Id: I7c78d7699e5599002de64b289b0c3a47c8c418f7
2019-02-22 11:26:32 -08:00
Kevin 61cc109a72 Split AppToOverviewAnimation for Go
Split AppToOverviewAnimationProvider between a Go recents version and
non-Go version as the animation from the app to recents will be
different for Go recents.

Bug: 114136250
Test: Manual test NexusLauncher, l3goWithQuickstep, l3goIconRecents
Change-Id: Iefdafd3838579b780817568b8c707098b79a8cdb
2019-02-21 13:04:58 -08:00
Kevin 14a97986f0 Remove assist cache from go recents src.
Go recents does not build as it uses the recently removed assist
structure. This finishes the removal for the Go src as well.

Bug: 114136250
Test: Build launcher3GoIconRecents
Change-Id: Ifdb6dacfce72caaf2d072157956e6617338e73b0
2019-02-21 12:07:09 -08:00
TreeHugger Robot d0d8e2c6d2 Merge "Implement fallback recents activity for Go" into ub-launcher3-master 2019-02-19 23:26:53 +00:00
Kevin 750bbe08da Implement fallback recents activity for Go
Implement recents activity for Go for when the default launcher does not
have recents implemented. To do this, we factor out some common recents
activity functionality from RecentsActivity and extend it to make a Go
specific activity that pops in the icon recents fragment.

Bug: 114136250
Test: Manual test NexusLauncher and Launcher3QuickstepGo by installing a
quickstep-less launcher and setting it to default
Change-Id: I936568489e8966da4a62e4b779ae660a220f2aeb
2019-02-19 14:12:42 -08:00
Sunny Goyal 3432a2afa5 Removing support for long swipe to all-apps
Change-Id: I29e6b2d283126e584de6e49b6f658c153d582d6b
2019-02-19 13:07:37 -08:00
Sunny Goyal b52ff2269b Fixing alt-tab is properly dispatched to the RecentsView
Change-Id: I14a5569877bc0e7fe3aa30d3cd1fa74920b3e9db
2019-02-14 13:49:57 -08:00
Sunny Goyal 3f271d4b7f Deleting Quickscrub related logic
Bug: 124255113
Change-Id: Ic5f2338f1e3ae0a0cfb08f822dee0e01ae54a7b0
2019-02-14 11:40:03 -08:00
Kevin 4dcf354ea4 Stub out BackgroundApp/FastOverview states for Go.
Go's recents will not have swipe up to overview so there is no need to
have BackgroundAppState. We also do not support quickstep so we don't
need a distinct FastOverviewState. So we stub them out here.

Bug: 114136250
Test: Manual test Launcher3QuickstepGo + NexusLauncher
Change-Id: I9223cd35fc3c64688cda16dcaa1d5f40460c9323
2019-02-01 09:54:17 -08:00
Kevin be973bfe18 Split LauncherActivityControllerHelper for Go
As Go will likely have very different implementation since it will be
replacing the app => overview animation, we split
LauncherActivityControllerHelper so that Go can override the class
completely.

Bug: 114136250
Test: Manul test NexusLauncher, Launcher3QuickStepGo, Launcher3IconRecents
Change-Id: Ia5554593ddafffe0f729a4658d0a37aed16d236b
2019-01-30 17:54:56 -08:00
TreeHugger Robot 4229752c3b Merge "Split OverviewToAllApps for Go" into ub-launcher3-master 2019-01-30 20:59:02 +00:00
Kevin 3d5551a18e Split OverviewToAllApps for Go
This CL swaps out the current OverviewToAllApps touch controller with
the Go specific implementation. Moreover, since we only use this class
in landscape, we rename it to LandscapeStatesTouchController to avoid
confusion.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3QuickstepGo, Go recents
Change-Id: I6025cfe9f400705a4666fd92298a08a0c0ef7202
2019-01-29 13:13:04 -08:00
Sunny Goyal 8c48d8bea6 Changing min sdk to 25
Change-Id: I0d28069967854357ca755bf25dec19d4979bdecf
2019-01-29 11:29:52 -08:00
Sunny Goyal 8b2b4e24ee Adding support for swipe and hold to overview from home screen to all-apps
- After the atomic animation ends, overview jumps slightly because the
  normal -> all apps transition puts it at a different position than
  normal -> overview

Bug: 111926330
Change-Id: I6ca359b3ef2fc4d0b6b96229d8bf118bd0db9649
2019-01-28 15:51:19 -08:00
Kevin Han 57f88bd0ec Revert "Remove OverviewToAllAppsController for Go"
This reverts commit 792fcc3aec.

Reason for revert: This class actually manages more than just overview to all apps transitions, and Go needs some form of this for landscape transitions state transitions

Change-Id: I073dcc94dda06ff8d87166d2674927df8f2418f5
2019-01-24 20:36:04 +00:00
Kevin 792fcc3aec Remove OverviewToAllAppsController for Go
Go's recents does not support an overview to all apps transition (as
there will be no hotseat and swiping will be used to navigate the view
itself). As a result, we never need the controller, so we don't take in
the class as a source and do not add it as a touch controller.

Bug: 114136250
Test: Manual test Launcher3QuickstepGo, NexusLauncher,
Launcher3IconRecentsGo
Change-Id: I7fff9d1e8727bd978e84462436e37219c57f7af6
2019-01-23 17:12:44 -08:00
TreeHugger Robot 38e87e8010 Merge "Split LauncherAppTransitionManagerImpl for Go" into ub-launcher3-master 2019-01-24 01:07:34 +00:00
Kevin c4ad03b9ef Split LauncherAppTransitionManagerImpl for Go
Split LauncherAppTransitionManagerImpl common functionality into a base
quickstep app transition class and subclass for recents-specific
implementation. In addition, override the app transition manager to the
appropriate manager depending on the build.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3GoWithQuickstep
Test: Build Launcher3GoIconRecents
Change-Id: Iab1b5ae0c75af276879d5e12df95f62a514bf571
2019-01-23 14:59:19 -08:00
Kevin 932ab718fd Split OverviewState for IconRecents Go
Split common functionality in OverviewState so that it can be reused in
both implementations for IconRecents Go and non-Go.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3GoWithQuickstep
Test: Manual test IconRecentsGo (gets to recents screen w/o crashing)
Change-Id: Ibff5d3573b3b22dcdfda1b0662d4dd219d2e382f
2019-01-23 13:01:57 -08:00
Kevin 231fe1cd7b Split out logic in RecentsViewStateController.
Split logic in RecentsViewStateController based off code that should be
shared and code that should not between Go icon recents and regular
quickstep recents. The Go version will maintain changes in
scale/translationY as per normal recents.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3GoQuickstep
Test: Build Launcher3GoIconRecents (no longer crashes immediately!)
Change-Id: Id060d6f8f0b68edee4becdf6b91b876bb8dbcefb
2019-01-22 11:52:53 -08:00
TreeHugger Robot 8689a4afc3 Merge "Split PortraitOverviewStateTouchHelper for Go" into ub-launcher3-master 2019-01-22 19:21:34 +00:00
Kevin 5ec7b98c66 Add icon recents view for Go
Add a specific view for Go's icon recents. We also add a few properties
for use in future refactors.

Bug: 114136250
Test: Build Launcher3GoIconRecents
Change-Id: I9852679256158344ab276d1c477f55b7dd2d6a52
2019-01-18 11:22:49 -08:00
Kevin 69d05656c6 Split PortraitOverviewStateTouchHelper for Go
Split out the logic in PortraitOverviewStateTouchHelper that is
dependent on the recents view implementation. This is done through a
separate helper class that we override on Go to stub out most of the
behavior.

This results in the Go version not supporting swipe transitions from
the recents state which is desired since we would otherwise risk
confusion over whether the swipe should go to the view or to the
transition (note that we will also take out the hotseat in this state).

Bug: 114136250
Test: Manual test NexusLauncher and l3goWithQuickstep
Test: Build l3goWithQuickstepIconRecents
Change-Id: I9b0e9c05171d279d03bbcb7f05344fa425f34b3e
2019-01-17 10:19:43 -08:00
Kevin ec6e41dda1 Split out recents logic from UiFactory
This CL splits out RecentsView specific logic from UiFactory and
overrides it in the Go IconRecents version, stubbing out much of the
functionality.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3GoQuickstep
Test: Build Launcher3GoIconRecents
Change-Id: I043f7f2b2581831f1a74a80110e9c4c25231c046
2019-01-10 12:57:15 -08:00
Kevin 2f6cb3167d Add icon recents fragment for IconRecents
Split out overview_panel from recents and override it with IconRecents
version to replace the recents view entirely.

Currently, on the IconRecents build variant, as expected, this hits a
class cast exception since many quickstep classes assume the overview
panel is an instance of RecentsView. All other variants build and push
fine.

Bug: 114136250
Test: Build + push NexusLauncherDebug, Launcher3Go,
Launcher3GoQuickstep, Launcher3GoQuickstepIconRecents
Change-Id: I3ac7331772e53ee81cb1735a709b4fb7b3bdb78c
2019-01-08 09:55:13 -08:00
Kevin 2857871b7f Add build variant for go-specific recents.
This CL sets up the source directories to build a Go version of
quickstep recents/icon recents. This is accomplished by splitting the
quickstep resources/sources into two groups: the base source and
sources that should be overridden (recents_ui_overrides). The new Go
recents variant then takes the base and combines it with the sources
in go/quickstep which should replace the ones in recents_ui_overrides.

As of now, no classes have been moved yet, so there
are only placeholder files.

In addition, this modifies the make and gradle files to reflect the new
sources.

Bug: 114136250
Test: build all targets via tapas, build all APKs from IDE
Change-Id: I6d0a4d93ab1c38d4ffc28fd21823caadd96d23f7
2019-01-07 14:37:02 -08:00
Hyunyoung Song ddcecfa634 System apps must target API 28 or higher
Bug: 120997004
Change-Id: I998a443a4327c47cbab8e4bc4843be1693f05d8d
2019-01-03 12:57:33 -08:00
Tony 1e0e558cbf Update Launcher3 Go device profile format
Bug: 121044483
Change-Id: I1aa18a8f4a8969e1349c0930e06413b6a2af4ed1
2018-12-20 11:29:24 -08:00
Rajeev Kumar 4851cf76a3 Disable AddItemActivity on Android Go devices.
Android Go doesn't support adding shortcuts to home screen.
Bug: 112904271
Test: Manual test

Change-Id: I28b20d0d9e5b5e7e91c16ca3ea355bb0c3984c42
2018-11-06 15:16:36 -08:00
Rajeev Kumar 97fab14d8f Get rid of unused resources from Launcher3 running on Android Go devices.
Bug: 112904271
Test: Manual test
Change-Id: Ia19e92801f4d1a47b0dab47185d23b10e2412328
2018-11-05 18:27:07 -08:00
Rajeev Kumar 1baf8a78c6 Create a launcher LoaderResults override.
This change disables shortcuts/widgets binding on Android Go devices.
Bug: 112904271
Test: Manual test

Change-Id: I3dbcd23dc448ff9ca5fe6c32958dcffb51c4bcf5
2018-11-05 15:43:53 -08:00
Rajeev Kumar 0a926c1d67 Create a launcher model override.
This change disables shortcuts/widgets loading on Android Go devices.
Bug: 112904271
Test: Manual test

Change-Id: I2c40f87a8f5d752525c99d254693a4e0a9eeeb2b
2018-11-02 15:25:25 -07:00
Rajeev Kumar 51ca603ac4 Create a deep shortcuts override.
This change disables deep shortcuts on Android Go devices.
Bug: 112904271
Test: Manual test

Change-Id: I6150a3500f67d8a8412b51796cc442e3384c2cbb
2018-10-31 13:52:38 -07:00
Rajeev Kumar c00a259701 Rename go/src_flags directory as go/src
This CL is preparation work to implement Modular shortcuts component in launcher using  java/code swap.

Bug: 112904271
Test: Manual test
Change-Id: I35cf81e95fe487a384d4e9f17ea303093197318f
2018-10-30 17:16:25 -07:00
Ryan Lothian fa530cd23f Make flags UI available on release build of launcher
The UI will only be shown on eng/userdebug platform builds.

Bug: 117223984
Change-Id: I27843f2d856a4a19f3fe53c4d306606eaa5714a2
2018-10-15 17:24:48 -04:00
Ryan Lothian 688e9896fa Groundwork for runtime-toggleable feature flags
This is the first step in adding a flag toggler UI to launcher.
The change migrates a single flag (QSB_ON_FIRST_SCREEN) from a
boolean constant to a boolean method. In future, that will allow
us to return different values at runtime.

Bug: 117223984
Change-Id: I1e62c91dd941b8145166021bc0aa157733e62ea0
2018-10-08 13:17:30 -04:00
Bill Yi 79f581516b Import translations. DO NOT MERGE
Change-Id: Ib9eb56eaa3740d8848d71d8a7a960af61c100e12
Auto-generated-cl: translation import
2018-06-18 11:58:04 -07:00
Android Build Merger (Role) 7f46327c04 [automerger] Defining a base theme, which can be overriden by derivative projects without affecting launcher theme am: bd88f396dc
Change-Id: I495b62832a9effdef6dc9ff779d92158f8be0aad
2018-06-08 18:20:26 +00:00
Sunny Goyal bd88f396dc Defining a base theme, which can be overriden by derivative projects without
affecting launcher theme

Bug: 70220582
Change-Id: Ie3069686be5e6a42910e90541db2d6b5b79e25c1
2018-06-08 11:20:01 -07:00
Bill Yi 4602e5c261 Import translations. DO NOT MERGE
Change-Id: I22d1469557a142df3e48e44eb140932edd80b85c
Auto-generated-cl: translation import
2018-05-07 16:40:49 -07:00
Bill Yi db7327f85f Import translations. DO NOT MERGE
Change-Id: I6646ab8842f39b209cd6d8eb7bcceb88569e6117
Auto-generated-cl: translation import
2018-05-07 16:38:30 -07:00
Bill Yi 1f6eb12763 Import translations. DO NOT MERGE
Change-Id: I00c17b6f7d32117a18c1450882068ffa3b61d3c2
Auto-generated-cl: translation import
2018-04-30 10:56:12 -07:00
Bill Yi 43b5cfe76b Import translations. DO NOT MERGE
Change-Id: I6a00a8461cd13c680453375914405c7f93806258
Auto-generated-cl: translation import
2018-04-30 10:53:33 -07:00
Bill Yi dcbd321095 Import translations. DO NOT MERGE
Change-Id: Iaf7e186dfb94e7ff47c048c9b8d4e0e1fb829b26
Auto-generated-cl: translation import
2018-04-20 12:00:33 -07:00
Bill Yi c8f3ee9be1 Import translations. DO NOT MERGE
Change-Id: I19182d20a9bfe17b92ee7e10dd17d6dc2e5ba118
Auto-generated-cl: translation import
2018-04-11 14:39:49 -07:00
Rajeev Kumar ff8699e411 Revert "Re-enabling Widgets in Launcher3Go"
This reverts commit 2eb7f0a34b.

Bug: 74039047
Test: Manual tests
Change-Id: Ifa38f7b1b805d781fbfc63cd71b01609f0a85d9e
2018-04-05 18:25:54 +00:00
Rajeev Kumar 2eb7f0a34b Re-enabling Widgets in Launcher3Go
Bug: 72876955
Test: Tested manually
Change-Id: I19e8696cf41cc00832b571e778bbc4c4774fa112
2018-02-05 13:57:24 -08:00
Bill Yi 390d267943 Import translations. DO NOT MERGE
Change-Id: I7aba482358326eaa0128448165d44f4d9a2a30c6
Auto-generated-cl: translation import
2018-01-27 04:12:39 -08:00
Sunny Goyal e15d1d1f97 Fixing InvariantDeviceProfile for Launcher3Go
Change-Id: I7b912370ff1603703baf07f772c784bd3f5b9cb5
2018-01-19 09:01:00 -08:00
Bill Yi a4ec5b45d3 Import translations. DO NOT MERGE
Change-Id: Id64734c3e855af2dc1fe94de1cf6635bd2741e29
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-10-16 14:26:10 -07:00
Android Build Merger (Role) 8c23068b7c [automerger] Larger icons for L3Go and spacing changes. am: 846455e1ff
Change-Id: Iec2b04651788abaa3abb8a1b295a7f5eb1f92355
2017-10-03 18:27:55 +00:00
Jon Miranda 846455e1ff Larger icons for L3Go and spacing changes.
There are cases (ie. smaller devices) where the icon label is closer
to the icon below it (rather than its corresponding icon).

To fix this, we ensure that the drawable padding (space between the
icon and its label) is no larger than the vertical padding of the cell.

Bug: 67317867
Change-Id: Ic3729726eebb60b67d658361c4335e724b7d68d7
2017-10-03 11:23:05 -07:00
Colin Cross 693db5d70b Use tools:node="replace" instead of tools:merge="override"
tools:merge="override" is no longer supported in Manifest Merger 2.

Bug: 36005379
Test: m -j Launcher3Go
Change-Id: I289f74f35876cdf274433ec1a579875217d9b9a8
(cherry picked from commit 318a8b626f)
2017-09-18 21:42:34 +00:00
Jonathan Miranda 4ec0d61ee8 [automerger] Show progress dialog when uninstalling an app in Launcher3Go. am: c56e3ff2ee
Change-Id: I9c9b9d8c3159d9c49e20f277bc17b0608571f134
2017-08-23 19:14:04 +00:00
Jon Miranda c56e3ff2ee Show progress dialog when uninstalling an app in Launcher3Go.
This ensures that the uninstall activity will finish only after
the task is completed.

We initially assumed that this was always the case, but in Android
Go the uninstall activity finishes before the uninstall is completed.

Bug: 64033585
Change-Id: Ic5d8dd99e2fecd0c9cb24093ee66668b4b38cb1a
2017-08-23 12:13:24 -07:00
Tony Wickham d424b25be4 [automerger] Remove notification dots setting for Launcher3Go am: c138515c4e
Change-Id: I2fdd2f33babf294140a649fafebc68d6e45b86d7
2017-08-14 22:09:39 +00:00
Tony Wickham c138515c4e Remove notification dots setting for Launcher3Go
Also remove BADGE_ICONS flag as it is no longer used or necessary.

Bug: 64561196
Change-Id: Icf9656537459a7dbad3a07830eedbdeec8d8f1ce
2017-08-14 15:09:24 -07:00
Hyunyoung Song 238ec0b2e2 Merge "Disable adaptive icon drawable parallax effect during drag and drop Bug: 34828147" into ub-launcher3-dorval-polish2 2017-08-09 15:14:01 +00:00
Hyunyoung Song a5a859838b Merge changes from topic 'am-84f3ec58-93f2-4a21-a27f-6d727311e4dc' into ub-launcher3-master
* changes:
  [automerger] Disable adaptive icon drawable parallax effect during drag and drop Bug: 34828147 am: 76bf7f3835
  Disable adaptive icon drawable parallax effect during drag and drop Bug: 34828147
2017-08-09 15:14:01 +00:00
The Android Open Source Project 5a492ea801 Import translations. DO NOT MERGE
Change-Id: Ieb766acaf2da7f21bf8b9fded3313bcc1ab59c31
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-09 04:25:44 -07:00
The Android Open Source Project f4085ff7cc Import translations. DO NOT MERGE
Change-Id: Ia1a6c690e285583fe62a9743d8e283c26d020ba2
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-09 04:24:16 -07:00
Hyunyoung Song 7c4bd89038 [automerger] Disable adaptive icon drawable parallax effect during drag and drop Bug: 34828147 am: 76bf7f3835
Change-Id: I4e43dd1b13d5bb24f281250d6884b1f5d5944f2e
2017-08-07 08:38:33 +00:00
Hyunyoung Song 76bf7f3835 Disable adaptive icon drawable parallax effect during drag and drop
Bug: 34828147

Change-Id: I5abb0997ce42db1ea73ebe469686585282f43594
2017-08-07 01:38:03 -07:00
TreeHugger Robot f2b83d0e84 Merge "Create new device profile for Android Go." into ub-launcher3-dorval-polish2 2017-08-04 17:57:00 +00:00
Jonathan Miranda 0c2fdbfd66 [automerger] Create new device profile for Android Go. am: 902e235348
Change-Id: I5920af06d1144e341cdeb59f4e9fde02a0f4b269
2017-08-03 20:49:37 +00:00
Jon Miranda 902e235348 Create new device profile for Android Go.
Bug: 64109388
Change-Id: I8660f4e206eacd4eaccaebe794d255063eeb7e37
2017-08-03 13:49:22 -07:00
Sunny Goyal 58ddf36f1a [automerger] Updating the shortcut icon for Launcher3Go am: eda6907387
Change-Id: I6d132b7da62b4f37021276dd559a79517e532ac8
2017-08-03 06:29:33 +00:00
Sunny Goyal eda6907387 Updating the shortcut icon for Launcher3Go
Bug: 64273481
Change-Id: I46cfc21f1faa7032f1f220a3d4eff42be54e4deb
2017-08-02 23:29:16 -07:00
Bill Yi 5fd0aed6c4 Import translations. DO NOT MERGE
Change-Id: Ia09f002c4374578b83fd1c3648101f68558b4f27
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-01 15:24:23 -07:00
Bill Yi 561ba6f75e Import translations. DO NOT MERGE
Change-Id: Ia9d31a97df9a90afdeb62b63c53142d2ebe302c1
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-01 15:23:26 -07:00
Bill Yi d7f6bbc157 Import translations. DO NOT MERGE
Change-Id: I8e2d5bcd2a25d60daf1802cefea210aac6a27569
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-07-28 04:04:08 -07:00
Bill Yi 60d1fb4d9d Import translations. DO NOT MERGE
Change-Id: I85b6194931befa864bbda235f519a5890de05059
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-07-28 04:00:04 -07:00
Sunny Goyal e1ee42c588 Simplifying FeatureFlags by moving common flags to a base class.
Only the modified flags need to be redefined.

Bug: 63967896
Change-Id: I521018a45a4c6b3280a4fbcf97cac698f8470a03
2017-07-24 01:03:43 -07:00
Sunny Goyal 64a75aa305 Adding A feature flag to disable widgets and a corresponding build
target Launcher3Go without widgets support

Bug: 62353159
Change-Id: Ia03d2235a9bcf75f9ef191924f81630e63a2c684
2017-07-21 14:10:13 -07:00