OPP: Prevent ANR during file share
Use case:
1) prepare 199 files to send via Bluetooth,
2) when go to the Bluetooth selecting device page,
do not select a device, go back home.
3) try to send the files again.
4) reproduce 1 to 3 multiple times.
Error:
ANR in com.android.bluetooth
Root cause:
Before opening device picker activity, user sharing another batch
of files multiple times which is causing dead lock.
Fix:
Share another batch of files only when previous shared
files info was updated in OPP DB or cleared from
local variables to avoid ANR in profile.
Crs-Fixed: 2342199
Change-Id: I852af44b6a66565be0b17dc8648c724d2af6aa3f
4 files changed