OPP: Handle Stale Data Exception
Use case:
1. Share numerous files
2. Wait for complete
3. View completed transfers
4. Before opening the transfer history click on home button
5. Repeat above steps numerous times
Failure:
Crash in com.android.bluetooth
Msg: StaleDataException, Attempting to access a
closed Cursor Window
Root cause:
Some rare cases after pausing activity also cursor
is trying to fetch values from OPP DB.
Fix:
Catch Cursor Exception to avoid crash in opp profile
and break loop If we get at least one finished transfer
from DB to avoid UN necessary iterations.
Test: Stale Data Exception not observed as per above usecase.
Fixes: 35013626
Change-Id: I9c76638c162e9433b0aa17b99711557ba8f9ef07
Loading
Please register or sign in to comment