OSDN Git Service

Remove direct-share target row animations and limit to one row.
authorDan Sandler <dsandler@android.com>
Wed, 23 May 2018 06:13:51 +0000 (02:13 -0400)
committerDaniel Sandler <dsandler@android.com>
Tue, 29 May 2018 13:58:10 +0000 (13:58 +0000)
commit62aad00c6cb19c0df16c55371a67eedcdbd0ce46
tree885239c66a5ba18c38a07a9fa6d26557a257ba2e
parent8997b7e4c9eef423f73b7c61e926a66648473c24
Remove direct-share target row animations and limit to one row.

The animation---which was responsible for causing relayouts
that would in turn bind views, which involved package
manager roundtrips---would lock out interaction with the rest of
the share sheet for at least 400ms while the animation ran
(often much longer if services were slow to start or respond).

Now the main UI is never blocked, and direct share targets
can take as long as they like (up to 2sec) before appearing.

It's really fast now, basically.

Bug: 67622422
Bug: 63521992
Test: atest com.android.internal.app.ChooserActivityTest
Change-Id: I21826e282226f2b2ce6d3d1b5862dbfc449f5918
core/java/com/android/internal/app/ChooserActivity.java