OPP: Fix ANR during retry failed transfer
Use Case:
1. Send a video from another device to DUT.
2. while sending , stop sending the video .
3. The video will come under "outbound transfers" in the DUT .
4. Select the video again from the "outbound transfers" & tap on "try again" , Observe
Failure:
Observed ANR in OPP profile.
Root Cause:
BluetoothOppSendFileInfo::generateFileInfo() takes long time to process
when sharing file from G photos app.
Fix:
When tap the "try again" button on the send failed dialog, the
method "BluetoothOppSendFileInfo::generateFileInfo()" will be
call, this method would be very time consuming , thereby causing ANR.
Changed this method into the child thread execution to avoid ANR in BT context.
CRs-Fixed: 2531986
Change-Id: Ie50771d7b5cdd1e0dd47834996135f2ea8e03a5c
1 file changed