Commit Graph
78507 Commits
Author SHA1 Message Date
Android Build Merger (Role) 5aa5905227 [automerger] Introducing Clear-all button on Overview am: 6d2321cb7d
Change-Id: I8fc6d63249c906e42c9abe4e158654ec21116f76
2018-04-18 18:33:42 +00:00
Vadim Tryshev 6d2321cb7d Introducing Clear-all button on Overview
It’s an initial implementation, i.e. no fancy effects.
It shares a parent (LauncherRecentsViewContainer) with RecentsView.
The button is centered in clear_all_button_container, which gets
positioned programmatically to the right of the last task. (RTL polish
will be a separate CL as well).

Bug: 72222505
Change-Id: Ia912908a93a30c2f51450ccf0f97c7495e7916d5
Test: Manual
2018-04-18 11:33:21 -07:00
TreeHugger Robot e973b032e4 Merge "Restricting the max duration used for the swipe-down animation" into ub-launcher3-edmonton 2018-04-18 18:32:23 +00:00
TreeHugger Robot c15480a77c Merge changes from topic "am-c3e42506-7f7d-4de5-891b-77b5ac8b0eee" into ub-launcher3-master
* changes:
  [automerger] Restricting the max duration used for the swipe-down animation am: 4b03a1e5a2
  Restricting the max duration used for the swipe-down animation
2018-04-18 18:32:23 +00:00
Tony Wickham 5c3706c22a Merge "Make sure notification listener stays unbound on reboot when badging disabled" into ub-launcher3-edmonton 2018-04-18 17:12:06 +00:00
Tony Wickham ca12899ce7 Merge changes from topic "am-ba0d2ef2-dcc6-410d-b951-94125ac33b2c" into ub-launcher3-master
* changes:
  [automerger] Make sure notification listener stays unbound on reboot when badging disabled am: 7aa922c912
  Make sure notification listener stays unbound on reboot when badging disabled
2018-04-18 17:12:06 +00:00
Android Build Merger (Role) fcb03702bd [automerger] Restricting the max duration used for the swipe-down animation am: 4b03a1e5a2
Change-Id: I311d03ae31ef689711e30c51f6668b14ae6581fb
2018-04-18 16:58:52 +00:00
Sunny Goyal 4b03a1e5a2 Restricting the max duration used for the swipe-down animation
> Also changing the interpolator from t^5 to t^2 so that it settles faster.

Bug: 78059672
Change-Id: Iae6e6f56eb2e249c11a8e069f04ab0f26a683063
2018-04-18 09:58:48 -07:00
Android Build Merger (Role) 67b7fabbb8 [automerger] Reset PIP position when canceling swipe up am: b67e35337b
Change-Id: I07c3c871aee1ce195a6fa7771383c81ef43b6e4f
2018-04-18 06:52:45 +00:00
Tracy Zhou b67e35337b Reset PIP position when canceling swipe up
onStop() is a confirmed signal of user leaving Launcher. In most use
cases, we use onUserLeaveHint() to move PIP. However, in some cases,
onUserLeaveHint() does not get triggered. It's still a good signal for
those use cases because it happens sooner than onStop() and is not
interrupted by focus change. In order to address cases that
onUserLeaveHint() is not triggered (e.g. cancelling swipe up), onStop()
pushes PIP to the right position. In other cases, we simply set it
twice, which does not hurt.

Change-Id: Ia206590d10d673b16196bbab927a24aaae3ba46b
Fixes: 77648293
Test: manual test
2018-04-17 23:45:47 -07:00
Android Build Merger (Role) b48ca51e43 [automerger] Make sure notification listener stays unbound on reboot when badging disabled am: 7aa922c912
Change-Id: I86bd965f95b72495718f51722fc8313f2ee4f3d4
2018-04-18 02:06:48 +00:00
Tony 7aa922c912 Make sure notification listener stays unbound on reboot when badging disabled
We were requesting unbind in onCreate(), but the NotificationListenerService
documentation for requestUnbind() clearly states "The service should wait for the
{@link #onListenerConnected()} event before performing this operation. I know it's
tempting, but you must wait." I was tempted, and I did not wait. :(

The fact that the notification listener was binding even though the setting was off
was not only inefficient, but also had at least one user-visible bug: because
secure settings are set per user, the global badging setting actually only applies
canShowBadge = false for user 0; other users such as work profile still show badges.

Repro steps:
1. Have a work profile
2. Get a notification on work profile app and normal app
3. Turn off global badging setting ("Allow notification dots" from home settings)
4. Reboot the device

In this case, we get onCreate, call requestUnbind() which is ignored since we aren't
bound, then get onBind() and onListenerConnected() etc. Thus the work profile app has
a notification dot and other apps don't.

Bug: 71545493
Change-Id: I7f7dc219b25c28257f8b98fba7e362b99d3cba45
2018-04-17 18:54:10 -07:00
TreeHugger Robot 9e82130525 Merge "Do not send proxy touch events to children." into ub-launcher3-edmonton 2018-04-17 22:40:45 +00:00
Android Build Merger (Role) 9ab2b47da3 [automerger] Do not send proxy touch events to children. am: 864d688ff3
Change-Id: I6eeb943db2fa803b695835fde917d71f9cc6edfa
2018-04-17 22:31:49 +00:00
Android Build Merger (Role) b0b810934d [automerger] Unifying and maintaining the text-alpha and text visibility property am: ed7a6937cb
Change-Id: I78955b8571aab8e7af479f8dce547c18e83d27b9
2018-04-17 22:27:30 +00:00
Sunny Goyal ed7a6937cb Unifying and maintaining the text-alpha and text visibility property
Bug: 76228194
Change-Id: I70be5f9fd22c53864a9a0308f256baa7dc1f3ab7
2018-04-17 20:08:10 +00:00
Sunny Goyal 864d688ff3 Do not send proxy touch events to children.
Call onIntercept and ontouch direclty, so that the touch is only
handled by touch handlers

Bug: 77912191
Change-Id: I8b583da2394282c757348818470dbb4bee095b33
2018-04-17 20:07:18 +00:00
Android Build Merger (Role) 25e7d67e11 [automerger] Linking swipe animate to stateTransition to that it gets properly reset afterwards am: cc35bb88da
Change-Id: Ib102a0b6944a4d28be599e721f80c1b8c5e3bca9
2018-04-17 20:03:59 +00:00
Sunny Goyal cc35bb88da Linking swipe animate to stateTransition to that it gets properly reset afterwards
Bug: 77848165
Change-Id: Ie4ae2fe933b37b66568c0a8eb29c85b9869a9987
2018-04-17 20:03:57 +00:00
Android Build Merger (Role) cc77030139 [automerger skipped] Disabling alpha layer on some views skipped: de967a2355
Change-Id: Id15176879b3a248047c50eb31979b54aedd71cad
2018-04-17 20:01:43 +00:00
Sunny Goyal de967a2355 Disabling alpha layer on some views
Change-Id: Ide1d5951ea80080f8fea8f32a76487b646b4f958
(cherry picked from commit 2020b20cd9)
2018-04-17 20:01:31 +00:00
Android Build Merger (Role) 859872ec68 [automerger skipped] Fix jank in launcher skipped: 71142fa4ac
Change-Id: I637aabfe7fcf5bbf7011fc3a81d0e7d3813657b3
2018-04-17 20:00:03 +00:00
Jorim Jaggi 71142fa4ac Fix jank in launcher
The icon grid was reappearing at the end of the animation, causing
slower frame draws at the end of the animation, possibly leading
to jank.

Fix this by waiting with resetting the alpha until the whole
animation is done.

Test: Open/close apps
Bug: 75985430
Change-Id: I8fa62c5f648335ce9d4c4450d52c46465e2d08bf
(cherry picked from commit 197808681d)
2018-04-17 19:59:34 +00:00
Sunny Goyal e53138385e Merge changes from topic "am-5db19ef1-44e7-4e3d-85ae-a8221cbff422" into ub-launcher3-master
* changes:
  [automerger] Animate thumbnail dim after quick scrub settles am: c879dbf764
  Animate thumbnail dim after quick scrub settles
2018-04-17 19:57:21 +00:00
Sunny Goyal 4aa5c249f1 Merge "Animate thumbnail dim after quick scrub settles" into ub-launcher3-edmonton 2018-04-17 19:57:21 +00:00
Android Build Merger (Role) 50d509c696 [automerger skipped] Removing accessibility description from page indicators skipped: a2adac6a91
Change-Id: Ia0b5b2c54965d1b01edb26268b1520851a251a9a
2018-04-17 19:53:38 +00:00
Vadim Tryshev a2adac6a91 Removing accessibility description from page indicators
The current page is announced upon switching to it.
Is should be done this way for all future page implementations with
indicators.

Bug: 77827828
Change-Id: I8ba3bd9d068954df51d6de45da79133ede12c96d
Test: Manual
Merged-In: I8f2f163a261dd7098939674d39e014236fc66d5d
2018-04-17 19:52:18 +00:00
Android Build Merger (Role) 0b0e9fc8f6 [automerger] Animate thumbnail dim after quick scrub settles am: c879dbf764
Change-Id: Ib1fedb0d73485d957c7398f3f4455622e3458525
2018-04-17 19:27:35 +00:00
Tony Wickham c879dbf764 Animate thumbnail dim after quick scrub settles
We now animate the dim alpha at the same time as the task icon.

I also clarified the dim alpha by inverting it where it is used in
TaskThumbnailView. Otherwise, we have to pass 1 - dimAlpha everywhere,
which is confusing and verbose.

Bug: 76170043
Change-Id: If8c01300993a0e5543b0650d44daaa143592b96e
(cherry picked from commit 291bfd9c95)
2018-04-17 19:27:33 +00:00
Sunny Goyal 2020b20cd9 Disabling alpha layer on some views
Change-Id: Ide1d5951ea80080f8fea8f32a76487b646b4f958
2018-04-17 10:48:54 -07:00
TreeHugger Robot 24cf926087 Merge "Removing accessibility description from page indicators" into ub-launcher3-master 2018-04-17 17:18:06 +00:00
Tony Wickham 3dc8e1a430 Merge "Animate thumbnail dim after quick scrub settles" into ub-launcher3-master 2018-04-17 17:17:48 +00:00
Jorim Jaggi a86c21b8d8 Merge "Fix jank in launcher" into ub-launcher3-master 2018-04-17 12:41:39 +00:00
Jorim Jaggi 197808681d Fix jank in launcher
The icon grid was reappearing at the end of the animation, causing
slower frame draws at the end of the animation, possibly leading
to jank.

Fix this by waiting with resetting the alpha until the whole
animation is done.

Test: Open/close apps
Bug: 75985430
Change-Id: I8fa62c5f648335ce9d4c4450d52c46465e2d08bf
2018-04-17 14:18:40 +02:00
Tony Wickham 291bfd9c95 Animate thumbnail dim after quick scrub settles
We now animate the dim alpha at the same time as the task icon.

I also clarified the dim alpha by inverting it where it is used in
TaskThumbnailView. Otherwise, we have to pass 1 - dimAlpha everywhere,
which is confusing and verbose.

Bug: 76170043
Change-Id: If8c01300993a0e5543b0650d44daaa143592b96e
2018-04-16 16:31:07 -07:00
Vadim Tryshev c7dc69dc1f Removing accessibility description from page indicators
The current page is announced upon switching to it.
Is should be done this way for all future page implementations with
indicators.

Bug: 77827828
Test: Manual
Change-Id: I8f2f163a261dd7098939674d39e014236fc66d5d
2018-04-16 15:43:24 -07:00
Sunny Goyal 3483c52e6b Waiting until onResume before creating the wallpaper-open animation.
Bug: 77853906
Change-Id: I5126855492da59c9dbfef0ce2a97f94662a6522b
2018-04-16 13:01:57 -07:00
Sunny Goyal 9162f8187c Better handling transparent activities
> Only hiding the task associated with the current task, instead of hiding all tasks
> Maintaining a state for hidden task so that it does not get reset when alpha is changed due
  to some other reason.

Bug: 77830202
Change-Id: I202e99b153c6f9e3a8d9c68d6844672b3bff41e9
2018-04-14 13:46:41 -07:00
TreeHugger Robot 4107c4310a Merge "a11y: disabling accessibility scrolling of the home screen" into ub-launcher3-master 2018-04-13 18:37:57 +00:00
TreeHugger Robot c1ff2a9dad Merge "Close floating views when entering overview" into ub-launcher3-master 2018-04-13 18:21:09 +00:00
Tony Wickham 00f9712cdd Merge "Ignore null notifications" into ub-launcher3-master 2018-04-13 18:12:05 +00:00
Tony Wickham f009493dd4 Close floating views when entering overview
Bug: 77995763
Change-Id: I9554b3d4925e208472de06d9e754d0aee369d75b
2018-04-13 11:10:18 -07:00
Tony Wickham a6f5869d8f Ignore null notifications
There seems to be an edge case where we can get a null notification in
onNotificationRemoved(); there's nothing actionable about that, so just
ignore it to prevent NPE. Also add null check to onNotificationPosted()
for good measure.

Bug: 69140873
Change-Id: I3586bf435d05aee38b99dffd3d01315b433e8476
2018-04-13 10:57:09 -07:00
TreeHugger Robot 8fa358a6ba Merge "Close out of recents when clicking it if it's empty" into ub-launcher3-master 2018-04-13 17:48:47 +00:00
Tony Wickham 3ee9f57eb6 Close out of recents when clicking it if it's empty
Bug: 77977813
Change-Id: Iadc95e47c68ed54b6f98bb053a543c0b240117c2
2018-04-13 10:40:21 -07:00
Tony Wickham 035a20dee1 Merge "Don't show back button when discovery bounce is playing" into ub-launcher3-master 2018-04-13 17:27:37 +00:00
TreeHugger Robot d98f8e1035 Merge "Fixing wrong cliping height when screenshot is rotated" into ub-launcher3-master 2018-04-13 16:43:08 +00:00
Sunny Goyal f3dbad134b Fixing wrong cliping height when screenshot is rotated
Bug: 77979532
Change-Id: I41aa5dc85a035e7936861412f3d77e22143eaf81
2018-04-13 09:18:39 -07:00
android-build-team Robot 47be8dc08c Snap for 4719555 from 77e312c285 to qt-release
Change-Id: If6b6600b0f37384953f6633ad554ffd9d824869d
2018-04-13 09:35:18 +00:00
Mehdi Alizadeh c7ee6802c5 Uses definitions in sysui_shared lib for Settings names
Also drops a new sysui_shared.jar

Bug: 77732469
Test: verifty it builds
Change-Id: I080672be4df746ecd3124cc22ccec3ceea3b0742
2018-04-12 19:15:15 -07:00