Commit Graph

15164 Commits

Author SHA1 Message Date
Søren Gjesse
45e89c76bb Surpress missing classes warnings from R8
Bug: 70852369
Test: m -j NexusLauncherRelease

Change-Id: If6056388be67c65d84d696940171f7918d203efc
2017-12-19 22:19:19 +01: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
Tony Mak
9558a884dd Fix tab selected color is not rendered properly
We used to use mSelectedPosition for both tab / indicator position.
However, they are not always in sync.
For example, if user taps on a tab, that tab will be in "selected state"
right away when we are still showing the sliding animation.

The fix is to use two separate variables to keep track of
tab / indicator position.

Fix: 70778492

Change-Id: I9b01fa2108b256448d3de0113f9bed75043afefd
2017-12-18 11:56:48 +00: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
Tony Mak
d33d081db3 Merge changes I218fe7d9,I60ef59de into ub-launcher3-master
* changes:
  Make work footer stick to the bottom if there are only a few apps #2
  Make work footer stick to the bottom if there are only a few apps
2017-12-15 17:11:17 +00:00
Tony Mak
2bfa4d469a Make work footer stick to the bottom if there are only a few apps #2
1. Move the work footer divider into the container, so it is translated
   with the rest of the footer.

2. Fixed the scrollbar issue in work tab by putting the footer height
   in AllAppsRecyclerView

3. We planned to drop the company name, and decided to use
   "Managed by your organisation".

4. Rename WorkModeToggleContainer to WorkFooterContainer as
   we are using work footer in else where.

BUG: 70571983
Change-Id: I218fe7d9970780a1a457ee450f1a32e7a46d9766
2017-12-15 11:40:07 +00:00
TreeHugger Robot
d56d7b9700 Merge "Updating the hotseat background to a solid color with rounded corners" into ub-launcher3-master 2017-12-14 20:27:44 +00:00
TreeHugger Robot
86cc383d6b Merge "Moving divider line into predictionview." into ub-launcher3-master 2017-12-14 20:04:08 +00:00
Sunny Goyal
b532dfe45d Updating the hotseat background to a solid color with rounded corners
Change-Id: I297920518f925e122f2e9f55a68228b96b42ea27
2017-12-14 11:43:48 -08:00
Mario Bertschler
d8ab4671e3 Moving divider line into predictionview.
Change-Id: I40753aaa154023641cead2bd7dcf906fa5a4c2d7
2017-12-14 11:20:46 -08:00
Sunny Goyal
2cdaf57f10 Make work footer stick to the bottom if there are only a few apps
Bug: 70571983
Change-Id: I60ef59de0cfcbc8df24b270d0b6d2f6439ccad44
2017-12-14 17:27:09 +00: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
TreeHugger Robot
ffa3bb97ff Merge "Ensures in all apps that the scrollposition and floating header translation are reset correctly on closing all apps and switching tabs." into ub-launcher3-master 2017-12-13 17:39:46 +00:00
Mario Bertschler
f66589db35 Ensures in all apps that the scrollposition and floating header
translation are reset correctly on closing all apps and switching tabs.

Change-Id: I86ba3e7bed4c27c485929af5920f76000d323875
2017-12-13 09:22:50 -08:00
TreeHugger Robot
7c5756bcf3 Merge "Preserve top/bottom padding in PredictionRowView on updating insets." into ub-launcher3-master 2017-12-13 17:22:08 +00:00
TreeHugger Robot
a74e60cb46 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-12-13 11:07:11 +00: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
Bill Yi
ff52bbe8a4 Import translations. DO NOT MERGE
Change-Id: I8be25c59975e669e0748a3660fab3f4157eed88a
Auto-generated-cl: translation import
2017-12-12 15:11:47 -08:00
Mario Bertschler
9f62d13ed8 Preserve top/bottom padding in PredictionRowView on updating insets.
Change-Id: Iba75902df46ff51b036d2ff117d4ab1ef2e1c0f8
2017-12-12 15:11:10 -08: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
d96072e63e Merge "Removing horizontal bar from page indicator" into ub-launcher3-master 2017-12-12 01:33:27 +00: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
TreeHugger Robot
76e81da4e0 Merge "Adding placeholder method for compat implementations for Accessibility manager" into ub-launcher3-master 2017-12-09 00:25:03 +00:00
Sunny Goyal
d0030b05f5 Adding placeholder method for compat implementations for Accessibility manager
> Moving some utility methods to the compat class

Bug: 69611105
Change-Id: Ide0cab0b926d7bc03617fc568d2a2b429ee00cd9
2017-12-08 16:09:45 -08:00
TreeHugger Robot
df01b9ee41 Merge "Separating predictionrowview into a separate layout file." into ub-launcher3-master 2017-12-08 23:37:08 +00:00
TreeHugger Robot
def90801df Merge "Fix for predicted apps not being refreshed." into ub-launcher3-master 2017-12-08 22:51:57 +00:00
Mario Bertschler
846ba918ff Separating predictionrowview into a separate layout file.
This enables overriding the predictions_view file.

Change-Id: Ie42ce37e1bcd3c3c7b51e0e734e7c01a6f9b9a98
2017-12-08 14:51:22 -08:00
Mario Bertschler
8db94e108b Fix for predicted apps not being refreshed.
Bug: 70353064
Change-Id: I1a667d5836b4b35ea4ee98baa83785be481aeb73
2017-12-08 14:25:29 -08:00
Tony Wickham
fcb1dd183c Merge "Implement swipe to dismiss recent tasks" into ub-launcher3-master 2017-12-08 19:12:42 +00:00
Tony Mak
b74ac8d3a1 Merge "Tab indicator of work tab should be in orange color" into ub-launcher3-master 2017-12-08 11:09:31 +00:00
Bill Yi
a704cac421 Import translations. DO NOT MERGE
Change-Id: Ic201b6f9b3e92db0ec1548704582fb3afa30af83
Auto-generated-cl: translation import
2017-12-07 17:02:20 -08:00
Sunny Goyal
a3e0350329 Creating a copy of vertical swipe detector for quickstep
Change-Id: Ie38e0c11e8ea9aa476e450f074295358623c6942
2017-12-07 16:28:21 -08:00
Tony Wickham
8643cd4ef4 Implement swipe to dismiss recent tasks
Bug: 69166452
Change-Id: I6ccb77dbc6e55c5076ecb9808ee8283e0c72eea7
2017-12-07 15:36:56 -08:00
TreeHugger Robot
daa8467e67 Merge "Removing view layer support during state animation." into ub-launcher3-master 2017-12-07 23:30:43 +00:00
Sunny Goyal
c35d7ea424 Merge "Replacing some method definitions with default platform implementations" into ub-launcher3-master 2017-12-07 22:28:53 +00:00
TreeHugger Robot
bf8c36a4df Merge "Minor refactoring of FloatingHeaderView and PredictionRowView." into ub-launcher3-master 2017-12-07 22:27:05 +00:00
Sunny Goyal
3c585ddbf7 Removing view layer support during state animation.
View layer was only being used when fading in/out hotseat in overview.
From API 21+, android automatically create layers when animating alpha

The current support for view layers does not work properly when cancelling
animations and controlling partial animations

Change-Id: I2d5785471af9819575beefe65f1f2bdd28c76bd5
2017-12-07 14:18:16 -08:00
Mario Bertschler
527051aaba Minor refactoring of FloatingHeaderView and PredictionRowView.
The main purpose of the CL is to let the let the PredictionRowView
calculate its own height instead of setting it from outside and cleaning
up dead code in FloatingHeaderView.

Change-Id: I7d63ee51a1a2f64618f7fd287bcf4cdb8476caa2
2017-12-07 14:15:23 -08:00
TreeHugger Robot
47f5914069 Merge "Adding support for tagging animations per controller, so that they can be controlled independently" into ub-launcher3-master 2017-12-07 22:11:40 +00:00
TreeHugger Robot
9a774e4489 Merge "Do not modify the children order while iterating the viewgroup" into ub-launcher3-master 2017-12-07 21:39:48 +00:00
TreeHugger Robot
303bbc3ba4 Merge "Stop settings properties to null in onDestroy()" into ub-launcher3-master 2017-12-07 21:29:22 +00:00
Sunny Goyal
e3c6d58b71 Adding support for tagging animations per controller, so that they can be controlled independently
Change-Id: I6f360362aa16f7e02fe5fe84976b23663f228030
2017-12-07 12:46:26 -08:00