Commit Graph

6667 Commits

Author SHA1 Message Date
Sunny Goyal
20a13ff54e Updating the swipe-to-dismiss animation
Swipe to dismiss animates the page translation so that the
final position at the endof swipe is same as the final position
on removing the task view.

Change-Id: I393acd5ae75cd94797bb4f1aa3dd3ec9017cbb47
2018-03-14 12:32:26 -07:00
TreeHugger Robot
d614d66fbb Merge "Fix accessiblity issue around work tab" into ub-launcher3-master 2018-03-14 17:42:25 +00:00
Tony Mak
98f7350f8f Fix accessiblity issue around work tab
1. Instead of always announcing "Apps list", we now announce
"personal apps list" and "work apps list" if tab is there.
2. Fix an issue that "personal" and "work" are announced twice.
3. Work footer is now announced as a group

FIX: 71703082

Change-Id: I0240bc04df09a5599540cfe67f0f48156f285548
2018-03-14 17:32:18 +00:00
Sunny Goyal
f633ef5f43 Adding fallback recents activity
> Refactoring RecentsView to a common base class
> Moving some dependency form Launcher to BaseActivity
> Using the Recents view in RecentsActivity

Change-Id: Ie0e6741d356291e77420798c140c999121de3a0d
2018-03-13 17:22:52 -07:00
Winson Chung
87dd782e40 Merge "Unloading thumbnails from task views once recents is hidden" into ub-launcher3-master 2018-03-13 23:42:46 +00:00
Winson Chung
c7c5158916 Unloading thumbnails from task views once recents is hidden
- Re-enabling the high res thumbnail loader, ensuring that we clean up
  the visible recent tasks when the associated views are removed
- When the recents state is re-entered, we will trigger the loading of
  the data anew (which will usually just fetch data from the existing
  cache if launcher was not stopped)

Bug: 74537246
Change-Id: I9cd69015461e1de34b4b65faeb9adb8aebd1dd3d
2018-03-13 20:47:36 +00:00
Sunny Goyal
7c7be8c20a Simplifying options popup and overview handling
> Removing support for page drag-n-drop from pagedView
> Removing Overview UI from Launcher3 without quickstep and using options popup instead
> Removing touch handlers from CellLayouts and showing options popup based on workspace long press
> Excluding touch outside inset when showing the popup

Bug: 74136505
Change-Id: I34c2a7ff58452db26f5d1a85d554be40fc75f2b8
2018-03-13 12:57:32 -07:00
Jon Miranda
d3c91fa058 Fix logic to get icon from any view that is a child of DeepShortcutView.
Change-Id: Ie05b2c2bb1b9d69e44f7869d80c52ecc2e5437db
2018-03-13 10:26:20 -07:00
TreeHugger Robot
fad58c8159 Merge "Set remote animations duration based on animation being run" into ub-launcher3-master 2018-03-13 17:07:27 +00:00
Tony Wickham
02e1875926 Set remote animations duration based on animation being run
Previously we always set the duration to 500, the app launch duration,
but now the animation can resolve to launching a recent task instead,
which uses a shorter duration. This led to effects such as the status
bar transitioning a bit late on those transitions.

Since we don't techinically know whether we are launching an app vs a
recent task until the animation starts (since we need to check the
opening target and corresponding task id), for now we just make an
educated guess based on the view type and launched component.

Change-Id: I8ebf10d24081d474a48a1eea55419651e2214545
2018-03-13 16:57:10 +00:00
TreeHugger Robot
8862ef3396 Merge "Using the task primary color as the background for the wrapped icon" into ub-launcher3-master 2018-03-13 16:49:34 +00:00
Jonathan Miranda
844505819e Merge "Fix window transition when opening app from deep shortcut menu." into ub-launcher3-master 2018-03-13 16:40:19 +00:00
Sunny Goyal
038e454df6 Using the task primary color as the background for the wrapped icon
Bug: 74445840
Change-Id: I6c6248c8c71cc9b27cbf301e36400a983127da18
2018-03-13 09:35:54 -07:00
Tony Wickham
fe62454efa Merge "Improve quick scrub" into ub-launcher3-master 2018-03-13 16:26:44 +00:00
Jon Miranda
79d9b632ef Fix window transition when opening app from deep shortcut menu.
Bug: 74109370
Change-Id: I10bbc6d6dd2ead1f4649830795af5d84a346073e
2018-03-13 09:23:50 -07:00
Tony
1e6eaea0a4 Improve quick scrub
- Snap to the next task when quick scrub starts, but don't allow
  snapping to further pages until the transition to overview
  completes (to prevent overshooting)
- Simplify quick switch to just launch the task that was snapped
  to in onQuickScrubStart
- Cleanup some state code

Bug: 70180755
Bug: 74014237
Change-Id: I7a4a0f1a568947b1f5e56a27d7328e47b05a675d
2018-03-13 14:50:26 +00:00
Tony
329ce74b7c Fix NPE when recents is empty
Bug: 74551539
Change-Id: I95416903ed7994cd42f1a8af0fb10591781efd5a
2018-03-13 14:09:46 +00:00
Sunny Goyal
7eee62b313 Merge "Ensuring that we finish the last transition before starting a new one." into ub-launcher3-master 2018-03-12 23:22:00 +00:00
Sunny Goyal
6586062f71 Ensuring that we finish the last transition before starting a new one.
> Finishing the active animation instead of cancelling it. This ansures
  that the animation callbacks are called properly and RecentsAnimaiton is finished
> If a transition is already running, using main thread for next transtion so that
  this new transition is not started before the last transition is finished.
> If the transition is expected to finish at Launcher, directly use the Launcher
  consumer. RunningTaskInfo is not updated until the screen shot is complete.

Bug: 74481901
Change-Id: I2b1128f1f2eff0e6bd94b3adb9cef6ae0578bd0c
2018-03-12 15:25:17 -07:00
Vadim Tryshev
2cb4760c42 Generating ACTION_TOGGLE_RECENTS events
Bug: 72967764
Test: atest google/perf/app-transition/sysui-latency-test, watch for 1_*
entries in output

Change-Id: I1bf2bb8f482f6113ed86600afa53407561dc66d0
2018-03-12 13:20:29 -07:00
Tony Wickham
dcdeffdfd5 Merge "Code cleanup: remove some unnecessary methods/variables" into ub-launcher3-master 2018-03-12 18:08:11 +00:00
Tony
b8f7d9a3ad Small updates for recents launch animation
- Increase translation x of adjacnet tasks, in order to maintain
  gaps between pages
- Fix parallax when launching side task (used to be based on launched
  task's translation, but now that is 0 since there's no curve)

Change-Id: Iace47761a6e0a69982cf2eac34436b7164e60792
2018-03-12 18:07:09 +00:00
TreeHugger Robot
4c8fbb9c95 Merge "Adding implementation of InstantAppResolver for quickstep" into ub-launcher3-master 2018-03-12 18:06:56 +00:00
TreeHugger Robot
f386e49c2d Merge "Initial changes for handling overview button in Launcher" into ub-launcher3-master 2018-03-12 17:57:47 +00:00
Sunny Goyal
773bf8fbd0 Initial changes for handling overview button in Launcher
Adding a debug flag to show the overview button and placeholder methods
for handling the callbacks

Change-Id: I35055e768d96b43b835bac2eb146e47850a7f4b1
2018-03-12 10:48:51 -07:00
Tony
8ee1fe5041 Code cleanup: remove some unnecessary methods/variables
Change-Id: I21672b517b9050f82dba6d85ce4e371ebdfc9b50
2018-03-12 17:47:31 +00:00
Tony Wickham
38f4ab1749 Merge changes from topic "remove-ws-card" into ub-launcher3-master
* changes:
  Remove workspace card
  Cleanup code relating to recents carousel
  Flatten recents (remove curve effect)
2018-03-12 17:27:56 +00:00
Tony
404e625516 Remove workspace card
Swiping up for recents scales down workspace and hides it, similar to the transition
to all apps. Simultaneously, recents slides in from the side.

Also removed the setting for swiping to the first task, as it is required now.

Change-Id: Id0845db6650a37917a4faa9c8a434a2270913904
2018-03-12 14:05:18 +00:00
TreeHugger Robot
446aa8c122 Merge "Remove the jaggies." into ub-launcher3-master 2018-03-10 02:16:07 +00:00
Winson Chung
c815353743 Remove the jaggies.
Bug: 74393813
Test: Swipe up, observe no jaggies
Change-Id: Ia620f01bf3078d544068df07faa5a7b81f621ed9
Signed-off-by: Winson Chung <winsonc@google.com>
2018-03-09 18:03:13 -08:00
Tony
5cd8ab938c Cleanup code relating to recents carousel
We can delete a lot of code now  that recents isn't curved and
workspace doesn't offset.

Bug: 70179222
Change-Id: I01f7e3c313cdc370a8db5251a5d9fb406c1eb76c
2018-03-09 20:58:39 +00:00
Tony Wickham
59a38e6788 Flatten recents (remove curve effect)
- Workspace card scales down to be same width as other cards, which
  leaves a gap at the bottom due to difference in aspect ratio. This
  can be changed in the future, but deferring for now.
- Workspace card no longer offsets when scrolling.
- Cards no longer scale and translate, but still have a bit of dimming
  when on the edges, so the center card has the most focus.

A lot of code can be cleaned up. Added TODO's now, will cleanup in
followup CL

Bug: 70179222
Change-Id: I2332aab10e2549a455f773e053ed8b48677c3110
2018-03-09 20:58:39 +00:00
Sunny Goyal
3fbca15555 Adding support for prefenrece search in QuickStep
Bug: 62292864
Change-Id: Ic112626ca9c5942c91ced4ab42e64cbce4657701
2018-03-09 12:57:11 -08:00
TreeHugger Robot
5c143255a5 Merge "Fade away half-screen assistant on swipe-to-recents gesture." into ub-launcher3-master 2018-03-09 02:02:35 +00:00
Vadim Tryshev
b09d25b26c Fade away half-screen assistant on swipe-to-recents gesture.
Half-screen assistant is not in task stack, and will be faded away.

Workspace-to-recents case with half-screen assistant needs more work
after we decide whether we should swipe to the workspace preview or to
the first task.

Bug: 70789568
Test: Manual: swipe a normal app to Recents; swipe an app with a
half-screen assistant on top of it to Recents.

Change-Id: I6e3acc2b94bb3b56d6590a72073d37a1771a1da5
2018-03-08 17:03:25 -08:00
Winson Chung
584f530721 Ensure we register the input consumer on the ui thread.
- We register the input consumer on the interim choreographer thread
  but unregister the input consumer on the UI thread when invalidating
  the previous handler. This may have caused a race condition where
  the disposal of the input consumer overlapped with the registration
  of the new one (they share a key in the input consumer map in the
  system)

Bug: 73505150
Test: Unable to reproduce, this is a hypothetical fix
Change-Id: I20a9a7be967f5072bbf50ce12e5e61cb939e3c75
2018-03-08 13:07:36 -08:00
Mario Bertschler
14a89262f1 Using edge effect to trigger spring animation for all apps.
Bug: 72811152
Bug: 72059944

Change-Id: Ied7b51caa2fb48a2fda126d59e4eaf6a35edded3
2018-03-08 11:16:53 -08:00
Sunny Goyal
61e084601e Adding implementation of InstantAppResolver for quickstep
> Badging instant apps properly in recents
> Routing drawable creation using Drawable factory

Bug: 31282621
Change-Id: Ice1cdd3e9b821bebdebebbdc5cba4a907ffc21f8
2018-03-07 15:36:10 -08:00
Tony
865ee02d20 Show back button when a floating view is visible
Bug: 74184060
Bug: 74243869
Change-Id: I3b1806e10d3f910ce3a8a980c2b1e0609e01582b
2018-03-07 12:21:10 +00:00
Sunny Goyal
f3efc25862 Using public APIs for hardware bitmaps
Bug: 35428783
Change-Id: I4e7eeaa94e0cdfb1c76dce507a6f855e4eebbd6c
2018-03-06 15:16:21 -08:00
Sunny Goyal
46d259d9fb Updating launch transition for transparent activities
When a transparent activity is started from recents, animate the launcher
NORMAL state instead of animating the launcher UI separately

Change-Id: Ibfc9f7096f668e0129042b8a69ed5130029df797
2018-03-06 09:51:03 -08:00
TreeHugger Robot
d90d04b1ec Merge "Updating Launcher rotation logic" into ub-launcher3-master 2018-03-05 23:44:54 +00:00
Tony Wickham
38e7d5226c Merge "Don't scroll to home card if overview isn't visible" into ub-launcher3-master 2018-03-05 23:43:52 +00:00
Sunny Goyal
705566df72 Merge "Removing click-feedback shadow generation logic in BubbleTextView" into ub-launcher3-master 2018-03-05 23:26:28 +00:00
Sunny Goyal
726bee7d5d Removing click-feedback shadow generation logic in BubbleTextView
Instead of animating the shadow, animating the icon scale. This avoids
unnecessary bitmap creating at app-launch and also plays nice with the
app-launch transition

Change-Id: I1d3d24bc7212a6d659855ff1002a45388e269e52
2018-03-05 14:56:38 -08:00
Winson Chung
3e002f8275 Merge "Revert "Revert "Adding a separate state for QuickScrub""" into ub-launcher3-master 2018-03-05 20:11:18 +00:00
Winson Chung
ca84552505 Revert "Revert "Adding a separate state for QuickScrub""
This reverts commit 2687257c98.

Reason for revert: Reverting post-build

Change-Id: Ic3a1e8ed84a227b42bc35b91d4f0eed60bb2e29c
2018-03-05 19:39:25 +00:00
TreeHugger Robot
1e813b6781 Merge "Prevent adding tasks to the visible task list." into ub-launcher3-master 2018-03-05 19:08:34 +00:00
Winson Chung
b134331e3e Prevent adding tasks to the visible task list.
Bug: 74116831
Change-Id: Idc3a9d44350ad3b8aa274264473411782ba3a6e4
2018-03-05 10:59:04 -08:00
Winson Chung
7015eff870 Merge "Temporarily disable highres thumbnail loader." into ub-launcher3-master 2018-03-05 18:22:55 +00:00