Commit Graph

8015 Commits

Author SHA1 Message Date
Sunny Goyal 5e42a7239c Merge changes from topic "am-74dc7dc8-e2ec-493b-90ca-01725fc50357" into ub-launcher3-master
* changes:
  [automerger] Reset the vertical progress when the discovery bounce is closed am: 0bd0244a73
  Reset the vertical progress when the discovery bounce is closed
2018-05-22 22:20:54 +00:00
TreeHugger Robot a31b4b8c25 Merge changes from topic "am-f1734de0-a8c9-409e-bd1b-c22b2df61ce2" into ub-launcher3-master
* changes:
  [automerger] Skip processing fallback icons as they are already badged and have shadow am: fbf327f9ee
  Skip processing fallback icons as they are already badged and have shadow
2018-05-22 22:00:05 +00:00
Android Build Merger (Role) 80213f0354 [automerger] Making overview panel accessible via Tab am: f1507a6a64
Change-Id: I21a2dd970e1bb725034acd2255f11ce62515db8f
2018-05-22 21:49:32 +00:00
Vadim Tryshev f1507a6a64 Making overview panel accessible via Tab
Keyboard navigation of AllAppsContainerView is broken in TOT; disabling
focusing there is necessary for Recents.

Bug: 72222505
Test: Manual
Change-Id: I85d544f7c8dbdaf12e49de51c6626bbc3dc32917
2018-05-22 14:47:44 -07:00
Android Build Merger (Role) 9d0e7203ba [automerger] Reset the vertical progress when the discovery bounce is closed am: 0bd0244a73
Change-Id: I606cbe8507190d852a47c96a0fdf70dfcbd78ad5
2018-05-22 18:41:02 +00:00
Sunny Goyal 0bd0244a73 Reset the vertical progress when the discovery bounce is closed
Since discovery bounce runs on absolute values, it can sometime leave the vertical progress
at an old value, if it is closed after the state change.
Also simplifying discovery bounce animation to use xml everytime.

Bug: 80099242
Change-Id: Iebc249dd02f474cbed85b695eeeb8c2bf60b935d
2018-05-22 11:40:58 -07:00
Android Build Merger (Role) 478c2a1a2e [automerger] Cleanup how we set back button alpha am: 4e21c1b552
Change-Id: Ia3a743ad864d092381a858a6c20d33e162f4f18f
2018-05-22 18:05:17 +00:00
Tony Wickham 4e21c1b552 Cleanup how we set back button alpha
Add BackButtonAlphaHandler to set back button alpha, instead of setting
it from multiple places.

Also force back button alpha to be 1 if swipe up is disabled (b/80091187)

Change-Id: I49b63a0e6b033a3a947a847669a398f1b9ff0564
2018-05-22 11:05:01 -07:00
TreeHugger Robot 52cb0a73a4 Merge "Go back to previous state when hitting back from discovery bounce" into ub-launcher3-edmonton 2018-05-21 23:11:56 +00:00
Android Build Merger (Role) 4229122049 [automerger] Go back to previous state when hitting back from discovery bounce am: 52c1b66f46
Change-Id: Ib979caee1d57bb92aa4de96a9587c0307799a3d1
2018-05-21 23:02:02 +00:00
Tony Wickham 52c1b66f46 Go back to previous state when hitting back from discovery bounce
Normally when you hit back, we just close the floating view if there
is one. This makes less sense for DiscoveryBounce, since it doesn't
feel like a different state even though it's technically a floating
view. So in that case, don't consume the back press; let launcher
handle it to go to the previous state.

Bug: 80075741
Change-Id: I7270b61be70509cb2101400a12929478a5d082aa
2018-05-21 16:01:49 -07:00
Android Build Merger (Role) 0874711c87 [automerger] onResume event should be logged (not twice but once) Bug: 79541772 am: bd6fba9f58
Change-Id: I7f5f11081d6ae1c37a4bbe0bbb02625214cd38d9
2018-05-21 19:28:02 +00:00
Hyunyoung Song bd6fba9f58 onResume event should be logged (not twice but once)
Bug: 79541772

Change-Id: I5fe1271007e4579e1ec95d51c215ef48d0c6eedd
2018-05-21 12:27:46 -07:00
Tony Wickham e542e91191 Merge "Cleanup UserManagerCompatVP to not use reflection" into ub-launcher3-edmonton 2018-05-21 18:18:47 +00:00
Android Build Merger (Role) ec8e9b91ab [automerger] Cleanup UserManagerCompatVP to not use reflection am: a9cc397673
Change-Id: I8e3061756e7a06c3f6f2e6cd1085b58baef7894d
2018-05-21 17:55:46 +00:00
Tony Wickham a9cc397673 Cleanup UserManagerCompatVP to not use reflection
Change-Id: I1e4afc9c36f9d8641799b70e83f6b9801aec2e3d
2018-05-21 10:54:09 -07:00
Tony Wickham e2116daa88 Merge "Don't prevent animations in power save mode" into ub-launcher3-edmonton 2018-05-21 17:51:35 +00:00
Tony Wickham 63499ff71a Merge changes from topic "am-675989db-76a3-4555-b81c-d07e29807c90" into ub-launcher3-master
* changes:
  [automerger] Don't prevent animations in power save mode am: 8155fa2aa5
  Don't prevent animations in power save mode
2018-05-21 17:51:35 +00:00
Android Build Merger (Role) 8de5b958d7 [automerger] Remove code duplication am: 98913d0c95
Change-Id: Id023fdbd3caa8d74e3f92a01e13d14af69932a65
2018-05-19 01:43:16 +00:00
Vadim Tryshev 98913d0c95 Remove code duplication
Bug: 72222505
Test: Manual
Change-Id: I6ae6ac7474b44c16bd765635e32d2e843bc02cac
2018-05-18 18:41:34 -07:00
Vadim Tryshev c0c361bc20 Merge changes from topic "am-c28e95bf-5771-424d-a5f0-7fd3976f5c47" into ub-launcher3-master
* changes:
  [automerger] Fixing reverted order of accessibility scrolling in Recents am: 0fc0713253
  Fixing reverted order of accessibility scrolling in Recents
2018-05-19 00:54:37 +00:00
Vadim Tryshev 4ae69dea49 Merge "Fixing reverted order of accessibility scrolling in Recents" into ub-launcher3-edmonton 2018-05-19 00:54:37 +00:00
Android Build Merger (Role) 9df59f704c [automerger] Don't prevent animations in power save mode am: 8155fa2aa5
Change-Id: Ic11bc1b98e3e31afe6a0d9d0175873098c0b1fb3
2018-05-19 00:21:10 +00:00
Tony Wickham 8155fa2aa5 Don't prevent animations in power save mode
Now that batter saver mode doesn't get rid of animations in P, we
shouldn't use custom logic to prevent them either.

Also updated ATLEAST_P to use version code.

Bug: 79990054
Change-Id: If17cf369035c976f3d9d81f35432a045f1956ce5
2018-05-18 17:18:49 -07:00
Tony Wickham b2ceb6a2db Merge changes from topic "am-7be3af44-066d-47ef-8317-5b07072f0a58" into ub-launcher3-master
* changes:
  [automerger] Fix a couple issues with swiping up from home am: 7de574175b
  Fix a couple issues with swiping up from home
2018-05-18 16:50:47 +00:00
Tony Wickham f9d38098ca Merge "Fix a couple issues with swiping up from home" into ub-launcher3-edmonton 2018-05-18 16:50:47 +00:00
Android Build Merger (Role) 83ee7af092 [automerger] Fade back button in and out tied with the overview/shelf (2/3) am: 8b92fe336b
Change-Id: I058d1b13c3195357c64d77139d7925043111d7ed
2018-05-18 00:48:52 +00:00
Matthew Ng 8b92fe336b Fade back button in and out tied with the overview/shelf (2/3)
Back button changes opacity when moving the shelf during swipe up
between home screen and overview. The alpha changes depending on the
progress of the swipe up animation. When going from app to home and vice
versa, the fade animation does not tie with the swipe up progress. The
fade animation also masks the back button drawable when ime visibility
changes.

Change-Id: I51e42930640ba711e81880b385bb722d7ee8ad33
Fixes: 74581837
Fixes: 76900236
Test: swipe up from home screen to overview
2018-05-18 00:48:51 +00:00
Android Build Merger (Role) e66cae1336 [automerger] Fix a couple issues with swiping up from home am: 7de574175b
Change-Id: I72bf610f944e16adab3dd24b325cdab896ea41be
2018-05-17 23:33:55 +00:00
Tony Wickham 7de574175b Fix a couple issues with swiping up from home
- Don't update the animation to go from 0 to 1; instead, update the
  interpolator to clamp to the remaining progress (b/79773309)
- Fix NPE that can happen in a race between the atomic animation
  ending and the non-atomic animation canceling/ending

Change-Id: I313251dc5cbd7b931b043fc3e840bb4ab368a790
2018-05-17 16:30:46 -07:00
Android Build Merger (Role) 83298de547 [automerger] Skip processing fallback icons as they are already badged and have shadow am: fbf327f9ee
Change-Id: I1c5b337c4e3382ce14715df6bbef4d52a5f3119f
2018-05-17 22:29:51 +00:00
Sunny Goyal fbf327f9ee Skip processing fallback icons as they are already badged and have shadow
Bug: 79496830
Change-Id: I3e601fda570eefdb277bfd50c846c5a2864f4b3a
2018-05-17 15:29:44 -07:00
TreeHugger Robot 48059dc706 Merge "Fixes a crash when turning off workprofile while the workprofile tab is active." into ub-launcher3-edmonton 2018-05-17 15:51:40 +00:00
Android Build Merger (Role) 49851c877c [automerger] Fixes a crash when turning off workprofile while the workprofile tab is active. am: d460c084eb
Change-Id: Id0fb9ee86ce31e498d454e6dc2732ea1a9b02c05
2018-05-17 08:13:30 +00:00
Mario Bertschler d460c084eb Fixes a crash when turning off workprofile while the workprofile tab is
active.

Bug: 79735930

Change-Id: Iafaddf827e648c9d39df78393a96f90dfc86fcca
2018-05-17 10:12:28 +02:00
Android Build Merger (Role) 93e8feb3d0 [automerger] Update interpolators and durations for state animations am: b2ddf10041
Change-Id: I239cb38770cb0b04c9cb26b6ea03396763c957f3
2018-05-16 23:04:16 +00:00
Tony Wickham b2ddf10041 Update interpolators and durations for state animations
When we enter overview (overview appears, workspace disappears):
- Workspace scales down from 1f to .8f with OvershootInterpolator(1.2f) at 200 ms
- Workspace fades from 1f to 0 with OvershootInterpolator(1.2f) at 200 ms
- Overview scales down from 1.33f to 1f with OvershootInterpolator(1.2f) at 200 ms
- Overview fades from 0 to 1f with OvershootInterpolator(1.2f) at 200 ms

When we exit overview (overview disappears, workspace appears):
- Workspace scales up from .92f to .1f with DecelerateInterpolator() at 200 ms
- Workspace fades from 0 to 1f with AccelerateInterpolator() at 200 ms
- Overview scales up from 1f to 1.1f with AccelerateInterpolator() at 180ms
- Overview fades from 1f to 0 with DecelerateInterpolator(1.7f) at 200 ms

Parallax while the finger moves: Workspace translates half the distance as the shelf

Bug: 79776746
Change-Id: I319d982cf202bcd6dbbcd68ffc5c0c7853629c7e
2018-05-16 15:59:31 -07:00
TreeHugger Robot 07b8b0b1f0 Merge "Fix bug where Workspace page alpha stays 0 in SpringLoaded mode." into ub-launcher3-edmonton 2018-05-16 22:51:44 +00:00
Android Build Merger (Role) 527a731cd9 [automerger] Fix bug where Workspace page alpha stays 0 in SpringLoaded mode. am: 8d994cd6d5
Change-Id: I2bd3bb802455babfaea0c67f09e07241e127ac55
2018-05-16 22:33:05 +00:00
Jon Miranda 8d994cd6d5 Fix bug where Workspace page alpha stays 0 in SpringLoaded mode.
The page alpha gets set to 0 by updatePageAlphaValues sometime between
Workspace calling goToState(SPRING_LOADED) and onStartStateTransition.

By the time the transition is over, Workspace is no longer in a modal state
and so alpha never gets restored via updatePageAlphaValues.

Bug: 76449277
Change-Id: I95241395594dd9084763cc3bc51bc55319cadb73
2018-05-16 15:32:54 -07:00
Tony Wickham 2c27df5b5d Merge "Set status bar icons to dark at correct all apps progress" into ub-launcher3-edmonton 2018-05-16 22:23:50 +00:00
Tony Wickham 8fa24a1342 Merge changes from topic "am-59fbdea6-e248-4df4-b415-7c55d22b5921" into ub-launcher3-master
* changes:
  [automerger] Set status bar icons to dark at correct all apps progress am: ec62522682
  Set status bar icons to dark at correct all apps progress
2018-05-16 22:23:50 +00:00
Android Build Merger (Role) 8a304828e2 [automerger] Fixing Recents sometimes restoring in Clear-all-reveal position. am: e628c474ea
Change-Id: I265109f6205ce84959d0153c3117a889bcc49b47
2018-05-16 22:01:53 +00:00
Vadim Tryshev e628c474ea Fixing Recents sometimes restoring in Clear-all-reveal position.
This happened if a task was added between openings of Recents.

Bug: 72222505
Test: Manual
Change-Id: Id4cc8e7cbdb493973d329466369b62e4ac8ee0b3
2018-05-16 15:00:52 -07:00
Tony Wickham 77bf622c01 Merge "Make fling thresholds consistent" into ub-launcher3-edmonton 2018-05-16 21:55:41 +00:00
Android Build Merger (Role) 87b1d85fcb [automerger] Set status bar icons to dark at correct all apps progress am: ec62522682
Change-Id: I14e4efb263f98254934a5af8bc047861c717291d
2018-05-16 21:27:59 +00:00
Tony Wickham ec62522682 Set status bar icons to dark at correct all apps progress
Bug: 79866102
Change-Id: I8c97896319406c8360a2f60d213868ad59dafe19
2018-05-16 14:27:49 -07:00
Android Build Merger (Role) 3c223104dd [automerger] Make fling thresholds consistent am: 0f640b6c1b
Change-Id: Ib7be6237515357d77d14cdbdf0d36f6456ee2ab8
2018-05-16 20:47:36 +00:00
Tony Wickham 0f640b6c1b Make fling thresholds consistent
There are 3 places we can block a fling:
- Swiping from home to all apps (through overview)
- Swiping from an app to all apps (through overview)
- Dismissing a task (in the same gesture that started by swiping down)

In all of these cases, we block the fling when crossing the threshold
to a new state (e.g. OVERVIEW), but unblock if the user pauses their
drag. With this change, the logic is consistent:
- Unblock the fling after pausing a short amount of time
- If a fling was blocked, increase the settling duration based on
  velocity

Bug: 78089840
Bug: 78658678
Change-Id: I5ef52b74229418b867b26c3c6d3db2cf6e48914b
2018-05-16 13:47:20 -07:00
Android Build Merger (Role) 6e2a403d78 [automerger] Fixing wrong accessibility focus when opening a floating view am: de75321542
Change-Id: Idb4db3d979a4017804b744c06524905f39f8146e
2018-05-16 20:11:06 +00:00