OSDN Git Service

Fixed potention ANR issue with Bluetooth OPP share.
authorFred <fredc@broadcom.com>
Fri, 28 Sep 2012 22:04:14 +0000 (15:04 -0700)
committerMatthew Xie <mattx@google.com>
Fri, 9 Nov 2012 18:34:30 +0000 (10:34 -0800)
commitcb7b1a54ae3ce309210824099253a916a04d350b
tree5ee4e30179a4b7803be179140d3c3b2bae76f18d
parent19d8d5447897a7f8f4ee1ac2745639e4c8c1ff8b
Fixed potention ANR issue with Bluetooth OPP share.

Updated BluetoothOppLauncherActivity so the call to
BluetoothOppManager.saveSendingFileInfo() runs on a child thread.
saveSendingFileInfo() opens/constructs the content stream, which
can take a long time, depending on the type of content.
It should not run inside the main UI thread of the
BluetoothOppLauncherActivity.

Bug 6802063

Change-Id: Id34b33fe37eb029d6a7592a811bbc9bbcde14ba8
src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java