Commit Graph

6741 Commits

Author SHA1 Message Date
Sunny Goyal
cd77ba0cdd Merge "Adding a horizontal popup when when workspace is longPressed" into ub-launcher3-master 2018-01-19 23:22:21 +00:00
Sunny Goyal
02424b20f3 Adding a horizontal popup when when workspace is longPressed
Change-Id: I5b3c48262c246bfe53e0010ca89c820f42503eef
2018-01-19 15:11:10 -08:00
Sunny Goyal
19d32b76dd Removing multi-state apha control for hotseat
Change-Id: I68ccbe96caa70921aefd18fc8ec9ad0638c3fab1
2018-01-19 14:26:44 -08:00
Jonathan Miranda
23608f7c9f Merge "Fallback to default launch options for users with old version of platform." into ub-launcher3-master 2018-01-19 22:19:30 +00:00
Jon Miranda
3e6fb6c080 Fallback to default launch options for users with old version of platform.
Bug: 70220260
Change-Id: I12aa1ecbc5823770b2b43384f3e3b0645394d714
2018-01-19 13:44:26 -08:00
Sunny Goyal
f59d0e47f3 Fading edges in landscape UI
Bug: 70179916
Change-Id: I62421d872fd788fbf3fcd6d4fca37d60b0b98a79
2018-01-19 11:28:24 -08:00
Jon Miranda
b3335da9ab Only move AllAppsContainerView when opening apps from All Apps.
Instead of moving the entire DragLayer, we only move
AllAppsContainerView. This prevents the hard white line caused
by the AllApps background translating downwards.

Bug: 70220260
Change-Id: I8249e8bbeea616e728d5502a35c95cbae401efdc
2018-01-18 17:20:30 -08:00
Sunny Goyal
234b92d4ec Merge "Reapplying state UI when the insets change" into ub-launcher3-master 2018-01-18 23:05:51 +00:00
TreeHugger Robot
dbcd632214 Merge "Move scrim from DragLayer to LauncherRootView." into ub-launcher3-master 2018-01-18 22:26:37 +00:00
Jon Miranda
de43a71b06 Move scrim from DragLayer to LauncherRootView.
This change will make opening/closing animations a lot cleaner.

Change-Id: I7f8ae301a9a126023833e282d6654bebd09bb306
2018-01-18 14:15:45 -08:00
Sunny Goyal
ce8809a588 Reapplying state UI when the insets change
Change-Id: Ief9588400f332b2c5b084a8a11c3102b2c20c4ea
2018-01-18 14:03:19 -08:00
TreeHugger Robot
f12cfaa156 Merge "Fading the edges of the thumbnail if the size is different than the view size" into ub-launcher3-master 2018-01-18 20:06:08 +00:00
Sunny Goyal
bac7f64fcc Fading the edges of the thumbnail if the size is different than the view size
Change-Id: I7bfb9d55ccbf4fa0338bc962632cfeac37cd69be
2018-01-18 11:48:40 -08:00
Jon Miranda
69057173a7 Synchronized opening app transition animations.
Bug: 70220260
Change-Id: I3c8e1c477266fb3bd7a39f74e3e1191e82ce58e9
2018-01-18 09:44:54 -08:00
Sunny Goyal
690f249843 Updating the workspace card in recents UI
> Removing the widgets button from the card
> Making the height of the card same as that of the second card
> Using the same swipe rage for going between Normal and Overview state

Change-Id: Ib8bd050c52294bb01522fbcd0236f2221e6fe62d
2018-01-17 16:38:50 -08:00
Sunny Goyal
8d9384e27b Using a default bitmap if we fail to take a screenshot
Change-Id: I7fbde49ee01732795618c2e664c406043ba7831b
2018-01-17 14:30:06 -08:00
Sunny Goyal
000e0a1480 Removing packageName from home intent to avoid duplicate launcher activity
Change-Id: I9a693f04aed2d40b95088e7a939390de5281ce31
2018-01-16 12:16:15 -08:00
Sunny Goyal
75c59acf5c Ensuring that Recents view is always loaded when going to Overview state
Change-Id: If2337a0be66f4ca68dd54954b7368f38d70a40d4
2018-01-16 12:01:57 -08:00
Sunny Goyal
05a3bbdef8 Adding swipe gestures in overview screen
> When on home time, swiping up goes to all_apps, and swiping down goes to normal
> When on a recents tile, swiping up the tile dismisses it, swiping down launches it
> When on a recents tile, swiping up on the hotseat opens allApps.

Change-Id: I59f8c02f5c5d9cb88c0585a083fbc33d33b1c806
2018-01-16 10:31:36 -08:00
TreeHugger Robot
dfa46e1d62 Merge "Adding a back stack to go to overview from all-apps" into ub-launcher3-master 2018-01-12 23:27:52 +00:00
Adam Cohen
f4fce2943e Don't reload the Recents model if it's already loaded
-> This was causing a race condition which would lead to many black
   thumbnails when invoking overview from home

Change-Id: I24221fd42a18a339c1b8bbdc63e63513561be9b9
2018-01-12 13:02:58 -08:00
Tony
6d6fe041c7 Implement quick scrub and quick switch callbacks
Bug: 70180755
Change-Id: I011dd5b0435cea7ba493e83b973ce5be7d18c1f0
2018-01-11 17:20:35 -08:00
Sunny Goyal
1a52ef57c7 Removing some dependency on Launcher UI
Change-Id: Ic1c84880cfe4daa9398b8eb27c3afc0837c5a8ca
2018-01-11 15:33:23 -08:00
Sunny Goyal
49bcf34e81 Adding a back stack to go to overview from all-apps
Change-Id: I94e7c27aa505123ddbe40ffa29b1bbc9b2748293
2018-01-11 14:45:11 -08:00
Sunny Goyal
9bb0d72640 Adding feature to support two different swipe targets from all-apps and overview
Change-Id: I7e7b4abbcebcbd6de43805c57ee40b0edd5ba5aa
2018-01-11 14:13:44 -08:00
TreeHugger Robot
b5d047ca14 Merge "Removing layout handling in DeviceProfile and moving it to individual views" into ub-launcher3-master 2018-01-10 23:25:26 +00:00
Sunny Goyal
07b6929cd9 Removing layout handling in DeviceProfile and moving it to
individual views

Bug: 71709920
Change-Id: I8300fa7a84b31898bdb135d774cca576d2928525
2018-01-10 15:13:25 -08:00
Tony Wickham
5cf0fbcfc5 Merge "Add onWidgetsBound() callback to TaskMenuView" into ub-launcher3-master 2018-01-09 02:07:33 +00:00
Sunny Goyal
228153d92a Updating landscape layout for launcher/quickstep
> Hotseat is tied to navbar (on left in seascape)
> Search box shows up in Overview (clicking it would crash for now)
> All-apps is no longer fullscreen in landscape
> Recents cards are appropriately scaled down
> Hotseat is visible in Overview

Bug: 70179916
Change-Id: I53149eaeac9557e8a01021b7e2d139f3d6ceef37
2018-01-08 13:53:44 -08:00
Tony Wickham
07b1d670f2 Animate to the workspace card when transitioning from overview to home
Change-Id: Ib2c2288fd935f678a5c7a354be09c6d852d86b41
2018-01-05 14:15:10 -08:00
TreeHugger Robot
a92638ab7d Merge "Two state swipe interaction fixes" into ub-launcher3-master 2018-01-03 23:20:28 +00:00
Sunny Goyal
2a0659b223 Two state swipe interaction fixes
> Loading the recents plan before showing recents and always starting with page 0
> Fixing thumbnail not getting drawn when layout happens after task plan is loaded
> Disabling two state swipe when touch service is not connected
> When using swite gesture, once user triggers the overview mode, he cannot land
  in NORMAL state in that gesture

Change-Id: I7a2e83318af6e98dcc64849690fcba6dc8f71f77
2018-01-03 15:11:27 -08:00
Tony Wickham
0c52b56db9 Add onWidgetsBound() callback to TaskMenuView
This lets us handle the edge cases where widgets are added or
removed after popuplating the menu, and updating it accordingly.

Change-Id: I5d8fff8714caa718f87aeac3b15a346b80aed7a8
2018-01-02 16:56:49 -08:00
Tony Wickham
2fae2a0e9c Add system shortcuts when long pressing recent icon
We add a floating view for the menu that aligns with the task icon.

If available, the following shortcuts are present:
- Widgets
- App info
- Install (for instant apps)

It is designed to be straightforward to add to this list.

Bug: 70294936

Change-Id: I56c1098353d09fc564e0e92e59e4fcf692e486ba
2018-01-02 15:44:34 -08:00
Sunny Goyal
9328a51271 Adding translationX to workspace card to that it is slightly visible
behind the first card

Change-Id: Idc0c169fb92510e74b983160778bd9dbacf29943
2017-12-22 11:21:18 -08:00
Sunny Goyal
e15e2a8267 Adding an empty page in Recents view corresponding to workspace
The page is aligned to the workspace card and shows a widgets button
in the empty region

Change-Id: I479c47a2fbac4b3ef1aaf833d9fe82b5d7e10ddc
2017-12-19 10:06:15 -08:00
Winson Chung
50f85e04f0 Temporarily disable HW bitmaps
- Causes crash due to sampling bitmap for badge color.

Change-Id: I5c9186fb22769c5b7dcf88d9820aabae5ce486f5
2017-12-15 11:43:29 -08:00
TreeHugger Robot
e7794795a0 Merge "First pass at using hardware bitmaps" into ub-launcher3-master 2017-12-14 00:46:25 +00:00
Tony Wickham
5f7335741d Merge "Swipe from nav bar to enter overview in landscape" into ub-launcher3-master 2017-12-13 21:46:19 +00:00
Sunny Goyal
9d32323cac First pass at using hardware bitmaps
Bug: 35428783
Change-Id: Ife67b85f6e7e268826597ed9bccd9659841f67de
2017-12-13 13:36:36 -08:00
Tony Wickham
30d276cb92 Merge "Animate recent app icon in after activity transition" into ub-launcher3-master 2017-12-13 17:45:16 +00:00
Tony Wickham
b744a67785 Swipe from nav bar to enter overview in landscape
Previously there was hard coded logic for portrait mode, such as
always assuming Y velocity and the upward swipe direction.

Bug: 70179916
Change-Id: Id08ae849632d766b01d67da1c6c67d4e24c697d7
2017-12-13 09:40:36 -08:00
Tony Wickham
0349b6c01c Animate recent app icon in after activity transition
This prevents the icon from being eclipsed by the drag view
as it scales down.

Change-Id: I6d06414bf58ddbc95e51827358e8845897ee554d
2017-12-12 17:23:26 -08:00
TreeHugger Robot
3526729354 Merge "Restricting the overview state trigger logic to a limited swipe range" into ub-launcher3-master 2017-12-13 00:15:00 +00:00
TreeHugger Robot
4aa4c5a911 Merge "Hide hotseat in landscape overview" into ub-launcher3-master 2017-12-12 23:10:56 +00:00
Tony Wickham
a447bd884b Hide hotseat in landscape overview
Bug: 70179916
Change-Id: Ib277a054cf16233ab9156a4448c41952e3295fae
2017-12-12 14:58:50 -08:00
Sunny Goyal
0c723353a6 Enabling swipe up from overview to all-apps
> Fixing wrong alpha interpolator when swiping down from all-apps

Change-Id: I7d4200c89797e5609fd7c4aa8681dea2ffd00bf7
2017-12-12 12:20:23 -08:00
Sunny Goyal
f5f6fc3898 Restricting the overview state trigger logic to a limited swipe range
Change-Id: I68714b064dcc62e1837005e0d25b48ac48aa62ca
2017-12-12 10:25:11 -08:00
Sunny Goyal
de5535a1ec Initial interaction for two state swipe to overview
> Currently swipe only works from NORMAL and ALL_APPS state
> All interpolation is spread linearly

On pausing the drag for some time, the workspace moves to overview state,
and all other transitions interpolate linearly from there over the
remaining swipe range

Change-Id: Ic79f9d0f446c9bfff11e4af4d31ddc1c86c45ab2
2017-12-11 09:56:17 -08:00
Tony Wickham
fcb1dd183c Merge "Implement swipe to dismiss recent tasks" into ub-launcher3-master 2017-12-08 19:12:42 +00:00