Commit Graph

6741 Commits

Author SHA1 Message Date
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
Android Build Merger (Role) e35f5ae036 [automerger] Bound recents content alpha to 0 and 1 am: 8417a7b514
Change-Id: Id555e2e108882b4e67473c449c2ddee8eba8ba68
2018-05-22 00:11:36 +00:00
Tony Wickham 8417a7b514 Bound recents content alpha to 0 and 1
Now that we use OvershootInterpolator for the atomic recents animation,
it's possible to get alpha > 1. The drawable and text paint used in the
empty recents state doesn't handle this well, causing alpha to jump to 0
in this case. Instead, we'll just force it to clamp to 1 ourselves.

Bug: 80004542
Change-Id: Id0177caf63cd349f6f27c9dfaf0e8995447e70fc
2018-05-21 17:11:24 -07:00
Android Build Merger (Role) 46d96b77d3 [automerger] Never setting accessibility focus manually am: 00e0b91917
Change-Id: I812e19b4facccfdcabd361eec847740764347536
2018-05-21 19:04:07 +00:00
Vadim Tryshev 00e0b91917 Never setting accessibility focus manually
This will result in the focus going to the second from the right task
upon opening Recents. This will be mitigated by implementing in near
future announcements like Task 6 out of 7.

Besides this, due to (presumably) problems external to Launcher, the
focus may stay on Home button or completely disappear upon opening
Recents.

Bug: 72222505
Change-Id: I0e5ac62bfa0e1c0db2d17a6014e61f82cfccf252
Testing: Manual
2018-05-21 19:04:05 +00:00
Vadim Tryshev b05b489f04 Merge "Hide clear-all button from accessibility" into ub-launcher3-edmonton 2018-05-19 01:11:00 +00:00
Vadim Tryshev 92f19288cd Merge changes from topic "am-b63afd55-e03a-46ca-9f0a-6ec17cf9f166" into ub-launcher3-master
* changes:
  [automerger] Hide clear-all button from accessibility am: bad1c73e73
  Hide clear-all button from accessibility
2018-05-19 01:11:00 +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
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
Android Build Merger (Role) 63ba30ac5e [automerger] Hide clear-all button from accessibility am: bad1c73e73
Change-Id: I169aa26a2139c2cb9b6431bf7cb4f33096dec0db
2018-05-19 00:29:16 +00:00
Vadim Tryshev bad1c73e73 Hide clear-all button from accessibility
This solves muliple navigation problems in Overview.

Bug: 79165501
Change-Id: I2ae99fe3ad24194c9516bb2a99344289ef7408e8
Testing: Manual
2018-05-18 17:28:19 -07:00
TreeHugger Robot 3bdb81868d Merge "Making sure the task open animation runs for the correct user tile" into ub-launcher3-edmonton 2018-05-18 22:26:35 +00:00
TreeHugger Robot bc5f07e132 Merge changes from topic "am-c47711fb-6399-4e60-a519-d1ac38504a20" into ub-launcher3-master
* changes:
  [automerger] Making sure the task open animation runs for the correct user tile am: 0751929ec2
  Making sure the task open animation runs for the correct user tile
2018-05-18 22:26:35 +00:00
Sunny Goyal 2bf60f406c Merge "Preventing activity restoart on mnc/mcc changes" into ub-launcher3-edmonton 2018-05-18 21:35:51 +00:00
Sunny Goyal 7e400a2778 Merge changes from topic "launcher-mnc-mcc" into ub-launcher3-master
* changes:
  [automerger] Preventing activity restoart on mnc/mcc changes am: f5c5d04b3b
  Preventing activity restoart on mnc/mcc changes
2018-05-18 21:35:51 +00:00
Android Build Merger (Role) 24260c1b40 [automerger] Making sure the task open animation runs for the correct user tile am: 0751929ec2
Change-Id: Ief59a52cd4c7c5aa3ef94f2b36d9267992db581b
2018-05-18 21:33:41 +00:00
Sunny Goyal 0751929ec2 Making sure the task open animation runs for the correct user tile
Bug: 79995913
Change-Id: I3223f25e3870bac526f8960ed3d00949650bca3b
2018-05-18 14:33:36 -07:00
TreeHugger Robot 5322e62f81 Merge "Some quick scrub fixes" into ub-launcher3-edmonton 2018-05-18 21:29:11 +00:00
Android Build Merger (Role) fb1025d86e [automerger] Some quick scrub fixes am: 32359e6b85
Change-Id: I1338e0b8c96e7bb49e44868e518dec4625d9ba91
2018-05-18 21:10:47 +00:00
Sunny Goyal 32359e6b85 Some quick scrub fixes
> Skipping quick scrub, if its already in progress, or is waiting on previous task launch
> Restoring to proper state is the task animation is cancelled before launcher gets onStop
> Crash when using quickscrub before last list has loaded

Bug: 77289180
Bug: 77856587
Bug: 79919440
Change-Id: I8db127bf9539cfc8f47c1e86c5030637845749d4
2018-05-18 14:10:41 -07:00
Android Build Merger (Role) e21e922515 [automerger] Preventing activity restoart on mnc/mcc changes am: f5c5d04b3b
Change-Id: I88d18eb8b6ec7e5ee7b13d774891d45d94da801f
2018-05-18 20:46:21 +00:00
Sunny Goyal f5c5d04b3b Preventing activity restoart on mnc/mcc changes
Bug: 77651657
Change-Id: I68a6995d57da4b3c43c1ecd78deda40c78934533
2018-05-18 13:46:15 -07:00
Android Build Merger (Role) 735d873d83 [automerger] Use actual quickstep callback to track gesture start am: 1b74bd652c
Change-Id: I60b371053432b72bd0d88135593b7638411986ab
2018-05-18 17:29:42 +00:00
Winson Chung 1b74bd652c Use actual quickstep callback to track gesture start
- Better than using the threshold ourselves, we should just use the callback
  from the system.

Bug: 79970627
Change-Id: Ida15cfdaa2463f9fa15e222c55e483eb145c2716
2018-05-18 10:29:30 -07: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
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
Android Build Merger (Role) 50c0e60b00 [automerger] Fix thresholds with deferred-start swipe up gestures am: fdf9315b8e
Change-Id: I569db435a37733be47e278fa6fd465f024c625a3
2018-05-18 16:22:29 +00:00
Winson Chung fdf9315b8e Fix thresholds with deferred-start swipe up gestures
- We were previously using the drag threshold (10dp) for both gesture start
  and drag start, when we should be using the touch threshold (24dp) for
  the deferred gesture start to ensure it coincides with the touch threshold
  for the buttons in the nav bar.

Bug: 79970627
Test: Swipe up over the back button, ensure that we don't both start the
      animation and also trigger back press

Change-Id: Ib4b2a3e2492da144485f87be5477eabf3e96e843
2018-05-18 09:13:17 -07:00
TreeHugger Robot f3cc505e86 Merge "Fade back button in and out tied with the overview/shelf (2/3)" into ub-launcher3-edmonton 2018-05-18 00:58: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
TreeHugger Robot f85d083980 Merge "Only remove task if it was uninstalled or removed from the recents list" into ub-launcher3-edmonton 2018-05-17 22:18:12 +00:00
Android Build Merger (Role) 843d7d28a2 [automerger] Only remove task if it was uninstalled or removed from the recents list am: 0e2aa7a264
Change-Id: I90a210f1ae3b5b87daafd83519b34b6f41169db2
2018-05-17 21:54:06 +00:00
Winson Chung 0e2aa7a264 Only remove task if it was uninstalled or removed from the recents list
- Was missing additional checks and unconditionally removing the task
  whenever the task was removed from the active tasks in AM. Instead, check
  that the app still exists both in the system and in the recents list
  before removing.

Bug: 79698015
Test: a) get incoming call, go to overview, end call and ensure removed
      b) install app, open app, go to overview, uninstall app and ensure removed

Change-Id: I8901cb232ef7ff0759923d6a98f65df4e4adf88b
2018-05-17 14:53:55 -07:00
Mehdi Alizadeh 64d19820f6 Merge "Use overlay settings for Swipe Up gesture default" into ub-launcher3-edmonton 2018-05-17 00:30:21 +00:00
Mehdi Alizadeh 90638f8613 Merge changes from topic "am-3d1938ed-ddfe-4bfa-8909-c410adf0dbfb" into ub-launcher3-master
* changes:
  [automerger] Use overlay settings for Swipe Up gesture default am: 25a8e6f063
  Use overlay settings for Swipe Up gesture default
2018-05-17 00:30:21 +00:00
TreeHugger Robot 8dcdcd9843 Merge "Fixing taskView not centered properly in available width" into ub-launcher3-edmonton 2018-05-16 23:53:20 +00:00
TreeHugger Robot 5a52621566 Merge changes from topic "am-0556e1f2-627d-498d-82e4-c0923cbd7751" into ub-launcher3-master
* changes:
  [automerger] Fixing taskView not centered properly in available width am: d62e14e539
  Fixing taskView not centered properly in available width
2018-05-16 23:53:20 +00: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
Android Build Merger (Role) d10ec34430 [automerger] Fixing taskView not centered properly in available width am: d62e14e539
Change-Id: I24fe5c927bf6990ac8b7ec53065d1938350c605c
2018-05-16 22:46:28 +00:00
Sunny Goyal d62e14e539 Fixing taskView not centered properly in available width
Bug: 79756414
Change-Id: Iec6b22f96f883d61f430599e34ff9ebe91d91924
2018-05-16 15:46:13 -07:00
Android Build Merger (Role) 407b4b1c4e [automerger] Use overlay settings for Swipe Up gesture default am: 25a8e6f063
Change-Id: I25c9b139bd8fe392ba762fd4793339f9633ec692
2018-05-16 22:36:42 +00:00
Mehdi Alizadeh 25a8e6f063 Use overlay settings for Swipe Up gesture default
Implements the following logic:

if config_swipe_up_gesture_setting_available is false, always use the
default value in config_swipe_up_gesture_default and ignore
Settings.Secure

if config_swipe_up_gesture_setting_available is true, use
config_swipe_up_gesture_default as the default value for
Settings.Secure, and respect Settings.Secure if user makes any changes.

Bug: 78641268
Test: Manual test
Change-Id: I586083b6655ccb3c94f08a911ed0de80f4738d62
2018-05-16 15:36:00 -07: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 3744e99741 Merge changes from topic "am-49ab0b6a-0408-47fb-8ced-f83558d65fe3" into ub-launcher3-master
* changes:
  [automerger] Make fling thresholds consistent am: 0f640b6c1b
  Make fling thresholds consistent
2018-05-16 21:55:41 +00:00
Tony Wickham 77bf622c01 Merge "Make fling thresholds consistent" into ub-launcher3-edmonton 2018-05-16 21:55:41 +00:00